Skip to content

Commit

Permalink
pre-rel 1.0b
Browse files Browse the repository at this point in the history
  • Loading branch information
dakka committed Jun 17, 2024
1 parent 9c5b25a commit 47d9c35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fix8/conjure_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ concept valid_bitset_enum = valid_enum<T> and requires(T)
template<valid_bitset_enum T>
class enum_bitset
{
using U = std::underlying_type_t<std::decay_t<T>>;
using U = std::underlying_type_t<T>;
static constexpr auto countof { conjure_enum<T>::count() };

template<T val>
Expand Down Expand Up @@ -595,6 +595,8 @@ class enum_bitset
{
if constexpr (constexpr auto uu{to_underlying<what>()}; uu < countof)
return test(uu);
else
return false;
}

template<T... comp>
Expand Down

0 comments on commit 47d9c35

Please sign in to comment.