summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/BitUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/BitUtils.h b/Source/Core/Common/BitUtils.h
index 458fff63a3..f9e0879326 100644
--- a/Source/Core/Common/BitUtils.h
+++ b/Source/Core/Common/BitUtils.h
@@ -137,6 +137,7 @@ public:
"BitCastPtr source type must be trivially copyable.");
static_assert(std::is_trivially_copyable<T>(),
"BitCastPtr destination type must be trivially copyable.");
+ static_assert(!std::is_pointer<T>(), "BitCastPtr destination type must not be a pointer.");
explicit BitCastPtrType(PtrType* ptr) : m_ptr(ptr) {}