Skip to content

Commit

Permalink
fix is_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
Neargye committed Nov 22, 2023
1 parent 1d1fd2f commit 6cef64a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/nameof.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ constexpr auto n() noexcept {
#endif
return name;
} else {
return cstring<0>{};
return string_view{};
}
}

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 6cef64a

Please sign in to comment.