summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-05-31 19:04:35 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-16 12:46:37 +0200
commitcd1d5786d998efdf18e9938db957f82331bab579 (patch)
tree91be49550af2d43d951954738405a04261ff4fb5 /src/common
parentBitField: Delete copy assignment to prevent obscure bugs. (diff)
downloadyuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar.gz
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar.bz2
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar.lz
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar.xz
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.tar.zst
yuzu-cd1d5786d998efdf18e9938db957f82331bab579.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bit_field.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index c28e722c8..52f0d8be6 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -189,5 +189,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_standard_layout<T>::value, "Invalid base type");
};
#pragma pack()