diff options
Diffstat (limited to '')
-rw-r--r-- | src/common/bit_field.h | 1 |
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() |