From e59126809c9c092d0913e6c1446f6d0ecf20bca2 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 17 Apr 2018 18:00:18 -0400 Subject: bit_field: Remove is_pod check, add is_trivially_copyable_v. --- src/common/bit_field.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/common') diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 5638bdbba..65e357dec 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -192,11 +192,6 @@ private: static_assert(position < 8 * sizeof(T), "Invalid position"); static_assert(bits <= 8 * sizeof(T), "Invalid number of bits"); static_assert(bits > 0, "Invalid number of bits"); - static_assert(std::is_pod::value, "Invalid base type"); + static_assert(std::is_trivially_copyable_v, "T must be trivially copyable in a BitField"); }; #pragma pack() - -#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) -static_assert(std::is_trivially_copyable>::value, - "BitField must be trivially copyable"); -#endif -- cgit v1.2.3