From b5deb0055ceaaed3e84859801e8903a9d3133b43 Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 18 May 2022 16:28:56 +0400 Subject: [PATCH] fix build --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 1812ac6..4f143c8 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -901,7 +901,7 @@ template constexpr auto n() noexcept { [[maybe_unused]] constexpr auto custom_name = customize::member_name(); - if constexpr (custom_name.empty() && nameof_member_supported) { + if constexpr (custom_name.empty() && nameof_member_supported::value) { #if defined(__clang__) || defined(__GNUC__) constexpr auto name = pretty_name({__PRETTY_FUNCTION__, sizeof(__PRETTY_FUNCTION__) - 2}); #else