summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-18 00:00:18 +0200
committerbunnei <bunneidev@gmail.com>2018-04-18 00:00:18 +0200
commite59126809c9c092d0913e6c1446f6d0ecf20bca2 (patch)
tree9e17eee0fdce5172b052e9a77fc56f09d4146237 /src
parentgl_shader_decompiler: Fix warnings with MarkAsUsed. (diff)
downloadyuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar.gz
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar.bz2
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar.lz
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar.xz
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.tar.zst
yuzu-e59126809c9c092d0913e6c1446f6d0ecf20bca2.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/bit_field.h7
1 files changed, 1 insertions, 6 deletions
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<T>::value, "Invalid base type");
+ static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable in a BitField");
};
#pragma pack()
-
-#if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER)
-static_assert(std::is_trivially_copyable<BitField<0, 1, unsigned>>::value,
- "BitField must be trivially copyable");
-#endif