From 3a9c2f81d00265c93ba9092c2ba852898dba066d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 May 2019 22:55:46 -0400 Subject: [PATCH] block_of_code: Use variable template variants of type traits Now all type traits are using the variable template variants where applicable. --- src/backend/x64/block_of_code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/x64/block_of_code.h b/src/backend/x64/block_of_code.h index 9858bfb4..00ef565e 100644 --- a/src/backend/x64/block_of_code.h +++ b/src/backend/x64/block_of_code.h @@ -68,7 +68,7 @@ public: /// Code emitter: Calls the function template void CallFunction(FunctionPointer fn) { - static_assert(std::is_pointer() && std::is_function>(), + static_assert(std::is_pointer_v && std::is_function_v>, "Supplied type must be a pointer to a function"); const u64 address = reinterpret_cast(fn);