فهرست منبع

type_info: stripped_type_name returns empty views if name is not available

skypjack 10 ماه پیش
والد
کامیت
63e38e40dd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/entt/core/type_info.hpp

+ 1 - 1
src/entt/core/type_info.hpp

@@ -29,7 +29,7 @@ template<typename Type>
     auto value = pretty_function.substr(first, pretty_function.find_last_of(ENTT_PRETTY_FUNCTION_SUFFIX) - first);
     auto value = pretty_function.substr(first, pretty_function.find_last_of(ENTT_PRETTY_FUNCTION_SUFFIX) - first);
     return value;
     return value;
 #else
 #else
-    return std::string_view{""};
+    return std::string_view{};
 #endif
 #endif
 }
 }