forked from eden-emu/eden
General: Fix compilation for GCC
This commit is contained in:
parent
fd7afda1e8
commit
afab6c143c
16 changed files with 56 additions and 42 deletions
|
@ -127,14 +127,11 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
BitField(T val) {
|
||||
Assign(val);
|
||||
}
|
||||
|
||||
BitField& operator=(T val) {
|
||||
Assign(val);
|
||||
return *this;
|
||||
}
|
||||
// This constructor and assignment operator might be considered ambiguous:
|
||||
// Would they initialize the storage or just the bitfield?
|
||||
// Hence, delete them. Use the Assign method to set bitfield values!
|
||||
BitField(T val) = delete;
|
||||
BitField& operator=(T val) = delete;
|
||||
|
||||
constexpr BitField() noexcept = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue