remove extra parentheses
This commit is contained in:
parent
18a7bb7f8c
commit
ecddb3c302
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ template <typename E>
|
||||||
constexpr auto min = enum_range<D>::min > (std::numeric_limits<U>::min)() ? enum_range<D>::min : (std::numeric_limits<U>::min)();
|
constexpr auto min = enum_range<D>::min > (std::numeric_limits<U>::min)() ? enum_range<D>::min : (std::numeric_limits<U>::min)();
|
||||||
constexpr auto names = detail::enum_names_impl<D, min>(std::make_integer_sequence<int, max - min + 1>{});
|
constexpr auto names = detail::enum_names_impl<D, min>(std::make_integer_sequence<int, max - min + 1>{});
|
||||||
|
|
||||||
if (auto i = static_cast<std::size_t>((static_cast<int>(value) - min)); i < names.size()) {
|
if (auto i = static_cast<std::size_t>(static_cast<int>(value) - min); i < names.size()) {
|
||||||
return names[i];
|
return names[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue