block_of_code: Use variable template variants of type traits

Now all type traits are using the variable template variants where
applicable.
This commit is contained in:
Lioncash 2019-05-03 22:55:46 -04:00 committed by MerryMage
parent aba4d8a59f
commit 3a9c2f81d0

View file

@ -68,7 +68,7 @@ public:
/// Code emitter: Calls the function
template <typename FunctionPointer>
void CallFunction(FunctionPointer fn) {
static_assert(std::is_pointer<FunctionPointer>() && std::is_function<std::remove_pointer_t<FunctionPointer>>(),
static_assert(std::is_pointer_v<FunctionPointer> && std::is_function_v<std::remove_pointer_t<FunctionPointer>>,
"Supplied type must be a pointer to a function");
const u64 address = reinterpret_cast<u64>(fn);