From 09f879a995f1fc429a44b3525cf87d8e7cdf2e27 Mon Sep 17 00:00:00 2001 From: neargye Date: Fri, 12 Aug 2022 21:46:36 +0400 Subject: [PATCH] fix clang trunk build --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;