From 2ba9af9e60ea3664a92a6a71ec894a793428598e Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 10 Feb 2026 06:42:15 -0600 Subject: [PATCH] ChunkFile: Prevent PointerWrap::Do(T&) from compiling with pointers. --- Source/Core/Common/ChunkFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 7e48e6e913..f44f08d279 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -264,9 +264,9 @@ public: } template + requires(std::is_trivially_copyable_v && !std::is_pointer_v) void Do(T& x) { - static_assert(std::is_trivially_copyable_v, "Only sane for trivially copyable types"); // Note: // Usually we can just use x = **ptr, etc. However, this doesn't work // for unions containing BitFields (long story, stupid language rules)