From 84abb9923a0d0cb332a646c3d4f45141a0f6058b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 25 Aug 2018 15:47:03 +0300 Subject: [PATCH] Don't use std::aligned_storage Don't need its limiting behaviour anyway --- Utilities/BEType.h | 5 ++++- Utilities/types.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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