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