summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-08-07 14:55:50 +1200
committerGitHub <noreply@github.com>2026-08-07 14:55:50 +1200
commit430138f468effe6bf396adf3cd4d46df4cbd9050 (patch)
tree6a2b52b276977794491f4a529999a42f63549bed /Source/Core
parent66d8a892203d76a1f7349ed07526089b828e3835 (diff)
parent6496d6c0c90f697261d43c5eac255a9f281659d3 (diff)
Merge pull request #14798 from sepalani/bitcast-noptr
Common/BitCastPtr: Prevent destination type to be a pointer
Diffstat (limited to 'Source/Core')
-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) {}