mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
move all enum_flags_* func to enum_flags.hpp
This commit is contained in:
parent
9508c563da
commit
3b4967b21e
7 changed files with 139 additions and 125 deletions
|
|
@ -97,6 +97,7 @@ constexpr bool operator==(MyStringView lhs, MyStringView rhs) {
|
|||
#define MAGIC_ENUM_USING_ALIAS_STRING_VIEW using string_view = MyStringView;
|
||||
|
||||
#include <magic_enum.hpp>
|
||||
#include <magic_enum_flags.hpp>
|
||||
using namespace magic_enum;
|
||||
using namespace magic_enum::bitwise_operators;
|
||||
|
||||
|
|
|
|||
|
|
@ -761,6 +761,7 @@ TEST_CASE("enum_flags_test_any") {
|
|||
REQUIRE_FALSE(enum_flags_test_any(Left|Up|Down, Right));
|
||||
|
||||
REQUIRE(enum_flags_test_any(number::one|number::two|number::four, number::one));
|
||||
REQUIRE(enum_flags_test_any(number::one|number::two|number::four, number::one|number::two));
|
||||
REQUIRE_FALSE(enum_flags_test_any(number::one|number::two|number::four, number::three));
|
||||
REQUIRE_FALSE(enum_flags_test_any(number::one|number::two|number::four, number::no_number));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue