mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
clean-up
This commit is contained in:
parent
34c86eaf11
commit
c3f158324a
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ template <typename E>
|
|||
static_assert(std::is_enum_v<E>, "magic_enum::detail::name_impl requires enum type.");
|
||||
constexpr auto strings = strings_v<E>;
|
||||
|
||||
if (auto i = static_cast<std::size_t>((static_cast<int>(value) - min_v<E>)); i < strings.size()) {
|
||||
if (auto i = static_cast<std::size_t>(static_cast<int>(value) - min_v<E>); i < strings.size()) {
|
||||
return strings[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue