From 6496d6c0c90f697261d43c5eac255a9f281659d3 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Tue, 4 Aug 2026 23:48:38 +0400 Subject: [PATCH] Common/BitCastPtr: Prevent destination type to be a pointer --- Source/Core/Common/BitUtils.h | 1 + 1 file changed, 1 insertion(+) 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) {}