From edc3ba588dc6598918d7b6220fa1dbed43a2a051 Mon Sep 17 00:00:00 2001 From: Neargye Date: Sat, 1 Sep 2018 16:05:50 +0500 Subject: [PATCH] clean-up --- include/nameof.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 6c033eb..939296c 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -379,20 +379,20 @@ NAMEOF_TYPE_CONSTEXPR cstring NameofType() { template ::value>::type> -constexpr cstring Nameof(const char* name, std::size_t size, bool with_suffix) { +constexpr cstring Nameof(const char* name, std::size_t size, bool with_suffix = false) { return detail::NameofPretty({name, size}, with_suffix); } +template +NAMEOF_TYPE_CONSTEXPR cstring NameofType() { + return true ? detail::NameofType>() : detail::NameofType>(); +} + template constexpr cstring NameofRaw(const char* name, std::size_t size) { return {name, size}; } -template > -NAMEOF_TYPE_CONSTEXPR cstring NameofType() { - return true ? detail::NameofType() : detail::NameofType(); -} - } // namespace nameof // Used to obtain the simple (unqualified) string name of a variable, member, function, macros.