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:
parent
aba4d8a59f
commit
3a9c2f81d0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue