type_info: stripped_type_name returns empty views if name is not available

This commit is contained in:
skypjack
2025-04-14 15:20:27 +02:00
parent c66f116449
commit 63e38e40dd

View File

@@ -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
}