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
parent 9d9ba745db
commit 2f8167a3e0
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

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);