From 9a231ffd8bd35108092d218c834544657bfb5986 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jan 2024 12:01:33 +0100 Subject: c --- compat/enum-bitset-fwd.hpp | 9 +++++++++ compat/enum-bitset.hpp | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 compat/enum-bitset-fwd.hpp (limited to 'compat') diff --git a/compat/enum-bitset-fwd.hpp b/compat/enum-bitset-fwd.hpp new file mode 100644 index 00000000..ad75b3aa --- /dev/null +++ b/compat/enum-bitset-fwd.hpp @@ -0,0 +1,9 @@ +#pragma once + +namespace floormat { + +template +requires (std::is_enum_v && std::is_same_v>>) +struct enum_bitset; + +} // namespace floormat diff --git a/compat/enum-bitset.hpp b/compat/enum-bitset.hpp index ebbd9982..f1c23808 100644 --- a/compat/enum-bitset.hpp +++ b/compat/enum-bitset.hpp @@ -1,9 +1,10 @@ #pragma once +#include "enum-bitset-fwd.hpp" #include namespace floormat { -template +template requires (std::is_enum_v && std::is_same_v>>) struct enum_bitset : std::bitset { using enum_type = Enum; -- cgit v1.2.3