From 89ce35bc85898211a6bec66b9a2534f00e4c7ab0 Mon Sep 17 00:00:00 2001 From: schaumb Date: Fri, 17 Mar 2023 17:26:53 +0100 Subject: [PATCH] Add function to description --- include/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 284240e..7afc604 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -1189,7 +1189,7 @@ template return name; } -// Obtains name of a global or class static variable. +// Obtains name of a function, a global or class static variable. template [[nodiscard]] constexpr auto nameof_pointer() noexcept -> std::enable_if_t, string_view> { static_assert(detail::nameof_pointer_supported::value, "nameof::nameof_pointer unsupported compiler (https://github.com/Neargye/nameof#compiler-compatibility)."); @@ -1271,7 +1271,7 @@ template // Obtains name of member. #define NAMEOF_MEMBER(...) ::nameof::nameof_member<__VA_ARGS__>() -// Obtains name of a global or class static variable. +// Obtains name of a function, a global or class static variable. #define NAMEOF_POINTER(...) ::nameof::nameof_pointer<__VA_ARGS__>() #if defined(__clang__)