Skip to content

Commit

Permalink
Add default copy constructor for BitMask
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed May 31, 2022
1 parent 4e1faff commit fb350a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/support/BitMask.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class BitMask : public BitFlags<FlagsEnum, StorageType>
BitMask() : BitFlags<FlagsEnum, StorageType>() {}
BitMask(const BitFlags<FlagsEnum, StorageType> & other) : BitFlags<FlagsEnum, StorageType>(other) {}
BitMask(BitFlags<FlagsEnum, StorageType> && other) : BitFlags<FlagsEnum, StorageType>(std::move(other)) {}
BitMask(const BitMask &) = default;

explicit BitMask(FlagsEnum value) : BitFlags<FlagsEnum, StorageType>(value) {}
explicit BitMask(IntegerType value) : BitFlags<FlagsEnum, StorageType>(value) {}
Expand Down

0 comments on commit fb350a9

Please sign in to comment.