diff --git a/include/nameof.hpp b/include/nameof.hpp index df868a3..ddbde07 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -946,14 +946,14 @@ union union_type { }; template -inline constexpr auto v = T{}; +inline constexpr auto static_v = T{}; template constexpr auto get_member_name() noexcept { if constexpr (std::is_member_function_pointer_v) { return n(); } else { - return n<&(constexpr_static_init>.f.*V)>(); + return n<&(static_v>.f.*V)>(); } }