diff --git a/include/nameof.hpp b/include/nameof.hpp index ddbde07..a7310a8 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -914,7 +914,7 @@ string nameof_short_type_rtti(const char* tn) noexcept { } #endif -template +template constexpr auto n() noexcept { [[maybe_unused]] constexpr auto custom_name = customize::member_name(); @@ -953,7 +953,7 @@ constexpr auto get_member_name() noexcept { if constexpr (std::is_member_function_pointer_v) { return n(); } else { - return n<&(static_v>.f.*V)>(); + return n>.f.*V)>(); } }