summaryrefslogtreecommitdiff
path: root/src/common/x64/xbyak_util.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 15:28:34 -0400
committerGitHub <noreply@github.com>2018-08-08 15:28:34 -0400
commitd224eb7c39c43754929972d07998db79ba093279 (patch)
tree4059c27a33d3595cfc37f6316a4e29290221e3d3 /src/common/x64/xbyak_util.h
parentfd9da4232b2f989257630884511ba50e108ad703 (diff)
parenta7d6efc5201960b351fee4760663388dd946ab8e (diff)
Merge pull request #966 from lioncash/modernize
common: Convert type traits templates over to variable template versions where applicable
Diffstat (limited to 'src/common/x64/xbyak_util.h')
-rw-r--r--src/common/x64/xbyak_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/x64/xbyak_util.h b/src/common/x64/xbyak_util.h
index 0f52f704b..ec76e0a47 100644
--- a/src/common/x64/xbyak_util.h
+++ b/src/common/x64/xbyak_util.h
@@ -34,7 +34,7 @@ inline bool IsWithin2G(const Xbyak::CodeGenerator& code, uintptr_t target) {
template <typename T>
inline void CallFarFunction(Xbyak::CodeGenerator& code, const T f) {
- static_assert(std::is_pointer<T>(), "Argument must be a (function) pointer.");
+ static_assert(std::is_pointer_v<T>, "Argument must be a (function) pointer.");
size_t addr = reinterpret_cast<size_t>(f);
if (IsWithin2G(code, addr)) {
code.call(f);