mirror of
https://github.com/Neargye/magic_enum
synced 2026-06-08 12:00:02 +00:00
Some code quality (#110)
This commit is contained in:
@@ -126,8 +126,8 @@ namespace customize {
|
||||
template <typename E>
|
||||
struct enum_range {
|
||||
static_assert(std::is_enum_v<E>, "magic_enum::customize::enum_range requires enum type.");
|
||||
inline static constexpr int min = MAGIC_ENUM_RANGE_MIN;
|
||||
inline static constexpr int max = MAGIC_ENUM_RANGE_MAX;
|
||||
static constexpr int min = MAGIC_ENUM_RANGE_MIN;
|
||||
static constexpr int max = MAGIC_ENUM_RANGE_MAX;
|
||||
static_assert(max > min, "magic_enum::customize::enum_range requires max > min.");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user