diff --git a/include/nameof.hpp b/include/nameof.hpp index 29b48a4..2146497 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -583,7 +583,7 @@ constexpr bool is_valid() noexcept { if constexpr (custom_name.empty()) { return n().size() != 0; } else { - return name.size() != 0; + return custom_name.size() != 0; } #else return enum_name(V)>().size() != 0;