mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
move is_flags to customize::enum_range
force set the enum-flag true or false
This commit is contained in:
parent
a8c9e57fbe
commit
9ed19fb9e9
4 changed files with 22 additions and 17 deletions
|
|
@ -40,8 +40,6 @@
|
|||
#include <sstream>
|
||||
|
||||
enum class Color { RED = 1, GREEN = 2, BLUE = 4 };
|
||||
template <>
|
||||
struct magic_enum::customize::is_flags_enum<Color> : std::true_type {};
|
||||
|
||||
enum class Numbers : int {
|
||||
one = 1 << 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue