Explorar o código

type_info: stripped_type_name returns empty views if name is not available

skypjack hai 1 ano
pai
achega
63e38e40dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }