generate singles

This commit is contained in:
BlackMATov
2023-12-31 00:08:42 +07:00
parent 6becc7f261
commit 9770cc2d99

View File

@@ -1024,14 +1024,14 @@ namespace meta_hpp::detail
struct name_of_wrapper_impl {};
template < typename T >
[[nodiscard]] constexpr std::string_view name_of_impl() noexcept {
[[nodiscard]] constexpr auto name_of_impl() noexcept {
#if META_HPP_DETAIL_COMPILER_ID == META_HPP_DETAIL_CLANG_COMPILER_ID
constexpr auto prefix = std::string_view{"[T = "};
constexpr auto suffix = std::string_view{"]"};
constexpr auto prefix = std::string_view{"name_of_wrapper_impl<"};
constexpr auto suffix = std::string_view{">]"};
constexpr auto fnsign = std::string_view{__PRETTY_FUNCTION__};
#elif META_HPP_DETAIL_COMPILER_ID == META_HPP_DETAIL_GCC_COMPILER_ID
constexpr auto prefix = std::string_view{"with T = "};
constexpr auto suffix = std::string_view{"]"};
constexpr auto prefix = std::string_view{"name_of_wrapper_impl<"};
constexpr auto suffix = std::string_view{">]"};
constexpr auto fnsign = std::string_view{__PRETTY_FUNCTION__};
#elif META_HPP_DETAIL_COMPILER_ID == META_HPP_DETAIL_MSVC_COMPILER_ID
constexpr auto prefix = std::string_view{"name_of_wrapper_impl<"};