From bad83b7e5ed3a2e8bd5f263b2f420386471c523e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Oct 2022 21:47:50 +0200 Subject: krap --- compat/enum-bitset.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compat') diff --git a/compat/enum-bitset.hpp b/compat/enum-bitset.hpp index 95c82ff7..1365b3fb 100644 --- a/compat/enum-bitset.hpp +++ b/compat/enum-bitset.hpp @@ -4,7 +4,9 @@ namespace floormat { template +requires std::is_enum_v struct enum_bitset : std::bitset<(std::size_t)Enum::MAX> { + using type = Enum; static_assert(std::is_same_v>>); static_assert(std::is_same_v>); using std::bitset<(std::size_t)Enum::MAX>::bitset; -- cgit v1.2.3