Common/BitCastPtr: Prevent destination type to be a pointer
This commit is contained in:
@@ -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) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user