clean-up
This commit is contained in:
parent
a26ad026a0
commit
1d1fd2fcfa
1 changed files with 2 additions and 2 deletions
|
@ -772,7 +772,7 @@ template <typename E, bool IsFlags = false>
|
|||
inline constexpr bool is_sparse_v = is_sparse<E, IsFlags>();
|
||||
|
||||
template <typename E, bool IsFlags = false, typename U = std::underlying_type_t<E>>
|
||||
[[nodiscard]] constexpr E enum_value(std::size_t i) noexcept {
|
||||
constexpr E enum_value(std::size_t i) noexcept {
|
||||
if constexpr (is_sparse_v<E, IsFlags>) {
|
||||
return values_v<E, IsFlags>[i];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue