Codechange: make EnumBitSet ConvertibleThroughBase

This commit is contained in:
Rubidium
2025-02-01 18:40:39 +01:00
committed by rubidium42
parent 55588b052e
commit b6a092f3e0
2 changed files with 2 additions and 8 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ debug_inline constexpr void ToggleFlag(T &x, const T y)
template <typename Tenum, typename Tstorage>
class EnumBitSet {
public:
using enum_type = Tenum; ///< Enum type of this EnumBitSet.
using storage_type = Tstorage; ///< Storage type of this EnumBitSet.
using EnumType = Tenum; ///< Enum type of this EnumBitSet.
using BaseType = Tstorage; ///< Storage type of this EnumBitSet, be ConvertibleThroughBase
constexpr EnumBitSet() : data(0) {}
constexpr EnumBitSet(Tenum value) : data(0) { this->Set(value); }