clean-up
This commit is contained in:
parent
b0951cc50e
commit
766fb9647e
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ template <typename E, int V>
|
||||||
struct nameof_enum_impl_t final {
|
struct nameof_enum_impl_t final {
|
||||||
[[nodiscard]] constexpr std::string_view operator()(int value) const noexcept {
|
[[nodiscard]] constexpr std::string_view operator()(int value) const noexcept {
|
||||||
if constexpr (V > std::numeric_limits<std::underlying_type_t<E>>::max()) {
|
if constexpr (V > std::numeric_limits<std::underlying_type_t<E>>::max()) {
|
||||||
return {"nameof_enum::out_of_range"};
|
return "nameof_enum::out_of_range";
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (value - V) {
|
switch (value - V) {
|
||||||
|
@ -220,7 +220,7 @@ struct nameof_enum_impl_t final {
|
||||||
template <typename E>
|
template <typename E>
|
||||||
struct nameof_enum_impl_t<E, NAMEOF_ENUM_MAX_SEARCH_DEPTH> final {
|
struct nameof_enum_impl_t<E, NAMEOF_ENUM_MAX_SEARCH_DEPTH> final {
|
||||||
[[nodiscard]] constexpr std::string_view operator()(int) const noexcept {
|
[[nodiscard]] constexpr std::string_view operator()(int) const noexcept {
|
||||||
return {"nameof_enum::out_of_range"};
|
return "nameof_enum::out_of_range";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue