From 6cef64a0857405abc33bd8e370c2616228a8a325 Mon Sep 17 00:00:00 2001 From: neargye Date: Thu, 23 Nov 2023 01:20:26 +0400 Subject: [PATCH] fix is_valid --- include/nameof.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 07eddff..fb9f4e2 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -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 inline constexpr auto values_v = values(); -template > -using values_t = decltype((values_v)); - template inline constexpr auto count_v = values_v.size();