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)