From 4accaa62047f27bcf1ea28e1e68db33e50c335df Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 31 Oct 2022 21:41:46 +0100 Subject: a --- compat/enum-bitset.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compat') diff --git a/compat/enum-bitset.hpp b/compat/enum-bitset.hpp index 0a1f91e4..ccf76434 100644 --- a/compat/enum-bitset.hpp +++ b/compat/enum-bitset.hpp @@ -3,13 +3,13 @@ namespace floormat { -template +template requires (std::is_enum_v && std::is_same_v>>) -struct enum_bitset : std::bitset { +struct enum_bitset : std::bitset { using enum_type = Enum; using value_type = std::underlying_type_t; - static constexpr auto COUNT = std::size_t{value_type(Enum::COUNT)}; + static constexpr auto COUNT = std::size_t{value_type(COUNT_)}; using std::bitset::bitset; constexpr bool operator[](Enum x) const { return std::bitset::operator[](std::size_t{value_type(x)}); } -- cgit v1.2.3