Przeglądaj źródła

type_info: stripped_type_name returns empty views if name is not available

skypjack 11 miesięcy temu
rodzic
commit
63e38e40dd
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
     return value;
 #else
-    return std::string_view{""};
+    return std::string_view{};
 #endif
 }