mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
remove is_fixed_enum
non stable and useless
This commit is contained in:
parent
c947afdbae
commit
105c8f067e
4 changed files with 0 additions and 30 deletions
|
|
@ -96,13 +96,6 @@ int main() {
|
|||
static_assert(magic_enum::is_scoped_enum_v<Color>);
|
||||
static_assert(magic_enum::is_scoped_enum_v<Flags>);
|
||||
|
||||
// Checks whether type is an Fixed enumeration.
|
||||
#if defined(_MSC_VER) && _MSC_VER != 1923 // MSVC bug, we can not check is enum fixed
|
||||
static_assert(!magic_enum::is_fixed_enum_v<color>);
|
||||
static_assert(magic_enum::is_fixed_enum_v<Color>);
|
||||
static_assert(magic_enum::is_fixed_enum_v<Flags>);
|
||||
#endif
|
||||
|
||||
// Enum pair (value enum, string enum name) sequence.
|
||||
constexpr auto color_entries = magic_enum::enum_entries<Color>();
|
||||
std::cout << "Colors entries:";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue