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(), "BitCastPtr destination type must be trivially copyable."); + static_assert(!std::is_pointer(), "BitCastPtr destination type must not be a pointer."); explicit BitCastPtrType(PtrType* ptr) : m_ptr(ptr) {}