From f32bbb0f09813de77da68c57d70156978b60a16b Mon Sep 17 00:00:00 2001 From: Bela Schaum Date: Mon, 25 Jul 2022 12:07:57 +0200 Subject: [PATCH] Try to fix tests (#43) --- include/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)>(); } }