From 6195f364cbd20de7c2e081c98b03b7284da4b1e6 Mon Sep 17 00:00:00 2001 From: terik23 Date: Sun, 24 Mar 2019 16:30:11 +0500 Subject: [PATCH] add more info for unsupported_compiler --- include/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 12a256a..e88ab62 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -155,7 +155,7 @@ template constexpr auto suffix = sizeof(">(void) noexcept") - 1; return detail::pretty_name({str + prefix, size - prefix - suffix}, false); #else - return {}; + return {"nameof_enum::unsupported_compiler"}; #endif } @@ -236,7 +236,7 @@ template constexpr auto suffix = sizeof(">>(void) noexcept") - 1; return nameof_type_impl_({str + prefix, size - prefix - suffix}); #else - return {}; + return {"nameof_type::unsupported_compiler"}; #endif }