diff options
Diffstat (limited to 'src/common/bit_field.h')
| -rw-r--r-- | src/common/bit_field.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 639efe22d..8e35c463f 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -162,9 +162,13 @@ public: | |||
| 162 | BitField(T val) = delete; | 162 | BitField(T val) = delete; |
| 163 | BitField& operator=(T val) = delete; | 163 | BitField& operator=(T val) = delete; |
| 164 | 164 | ||
| 165 | // Force default constructor to be created | 165 | constexpr BitField() noexcept = default; |
| 166 | // so that we can use this within unions | 166 | |
| 167 | constexpr BitField() = default; | 167 | constexpr BitField(const BitField&) noexcept = default; |
| 168 | constexpr BitField& operator=(const BitField&) noexcept = default; | ||
| 169 | |||
| 170 | constexpr BitField(BitField&&) noexcept = default; | ||
| 171 | constexpr BitField& operator=(BitField&&) noexcept = default; | ||
| 168 | 172 | ||
| 169 | constexpr FORCE_INLINE operator T() const { | 173 | constexpr FORCE_INLINE operator T() const { |
| 170 | return Value(); | 174 | return Value(); |