From c793b69c40918163c63936c748b2146cff37ee84 Mon Sep 17 00:00:00 2001 From: neargye Date: Mon, 25 Jul 2022 01:10:57 +0400 Subject: [PATCH] fix --- include/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)>(); } }