From 7a90e2a93b7529f115b3ce83cb5cf6bbaf4d2fee Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 14 Apr 2025 15:35:34 +0200 Subject: [PATCH] type_info: rename things for the best --- src/entt/core/type_info.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/core/type_info.hpp b/src/entt/core/type_info.hpp index 60b8962bd..b17073f37 100644 --- a/src/entt/core/type_info.hpp +++ b/src/entt/core/type_info.hpp @@ -22,7 +22,7 @@ struct ENTT_API type_index final { }; template -[[nodiscard]] constexpr const char *full_type_name() noexcept { +[[nodiscard]] constexpr const char *pretty_function() noexcept { #if defined ENTT_PRETTY_FUNCTION return static_cast(ENTT_PRETTY_FUNCTION); #else @@ -32,7 +32,7 @@ template template [[nodiscard]] constexpr auto stripped_type_name() noexcept { - const std::string_view full_name{full_type_name()}; + const std::string_view full_name{pretty_function()}; auto first = full_name.find_first_not_of(' ', full_name.find_first_of(ENTT_PRETTY_FUNCTION_PREFIX) + 1); auto value = full_name.substr(first, full_name.find_last_of(ENTT_PRETTY_FUNCTION_SUFFIX) - first); return value;