fix is_valid

This commit is contained in:
neargye 2023-11-23 01:20:26 +04:00
parent 1d1fd2fcfa
commit 6cef64a085

View file

@ -567,7 +567,7 @@ constexpr auto n() noexcept {
#endif
return name;
} else {
return cstring<0>{};
return string_view{};
}
}
@ -732,9 +732,6 @@ constexpr auto values() noexcept {
template <typename E, bool IsFlags = false>
inline constexpr auto values_v = values<E, IsFlags>();
template <typename E, bool IsFlags = false, typename D = std::decay_t<E>>
using values_t = decltype((values_v<D, IsFlags>));
template <typename E, bool IsFlags = false>
inline constexpr auto count_v = values_v<E, IsFlags>.size();