summaryrefslogtreecommitdiff
path: root/src/common/bit_field.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/bit_field.h')
-rw-r--r--src/common/bit_field.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 368b7b98c..7e1df62b1 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -127,14 +127,11 @@ public:
127 } 127 }
128 } 128 }
129 129
130 BitField(T val) { 130 // This constructor and assignment operator might be considered ambiguous:
131 Assign(val); 131 // Would they initialize the storage or just the bitfield?
132 } 132 // Hence, delete them. Use the Assign method to set bitfield values!
133 133 BitField(T val) = delete;
134 BitField& operator=(T val) { 134 BitField& operator=(T val) = delete;
135 Assign(val);
136 return *this;
137 }
138 135
139 constexpr BitField() noexcept = default; 136 constexpr BitField() noexcept = default;
140 137