add more info for unsupported_compiler

This commit is contained in:
terik23 2019-03-24 16:30:11 +05:00
parent dc8d46685e
commit 6195f364cb

View file

@ -155,7 +155,7 @@ template <typename E, E V>
constexpr auto suffix = sizeof(">(void) noexcept") - 1; constexpr auto suffix = sizeof(">(void) noexcept") - 1;
return detail::pretty_name({str + prefix, size - prefix - suffix}, false); return detail::pretty_name({str + prefix, size - prefix - suffix}, false);
#else #else
return {}; return {"nameof_enum::unsupported_compiler"};
#endif #endif
} }
@ -236,7 +236,7 @@ template <typename T>
constexpr auto suffix = sizeof(">>(void) noexcept") - 1; constexpr auto suffix = sizeof(">>(void) noexcept") - 1;
return nameof_type_impl_({str + prefix, size - prefix - suffix}); return nameof_type_impl_({str + prefix, size - prefix - suffix});
#else #else
return {}; return {"nameof_type::unsupported_compiler"};
#endif #endif
} }