diff --git a/Utilities/BEType.h b/Utilities/BEType.h index 6cbd544111..293909ce79 100644 --- a/Utilities/BEType.h +++ b/Utilities/BEType.h @@ -334,7 +334,10 @@ inline v128 operator~(const v128& other) template struct se_storage { - using type = std::aligned_storage_t; + struct type + { + alignas(Align) std::byte data[Size]; + }; // Unoptimized generic byteswap for unaligned data static void reverse(u8* dst, const u8* src) diff --git a/Utilities/types.h b/Utilities/types.h index d19512e0af..65be18d813 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -770,7 +770,7 @@ struct value_hash template