Closed ForserX closed 7 months ago
For enum-flags add is_flags
to specialization enum_range for necessary enum type. Specialization of enum_range must be injected in namespace magic_enum::customize
template <>
struct magic_enum::customize::enum_range<ECoreParams> {
static constexpr bool is_flags = true;
};
See more https://github.com/Neargye/magic_enum/blob/master/doc/reference.md#enum_flags and https://github.com/Neargye/magic_enum/blob/master/doc/limitations.md#enum-flags
Thx!