mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-07 12:44:22 -05:00
Merge pull request #14798 from sepalani/bitcast-noptr
Common/BitCastPtr: Prevent destination type to be a pointer
This commit is contained in:
commit
430138f468
|
|
@ -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) {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user