To avoid common user errors - especially when operating with const char*-based legacy APIs,
make csl::typeinfo::type_name_v<T> == std::string_view{csl::typeinfo::type_name_v<T>.data()}.
💡 C++23 implementation might use constexpr std::string instead of std::string_view,
see demo here: https://godbolt.org/z/99Kq6W8ob
To avoid common user errors - especially when operating with
const char*
-based legacy APIs,make
csl::typeinfo::type_name_v<T> == std::string_view{csl::typeinfo::type_name_v<T>.data()}
.💡 C++23 implementation might use
constexpr std::string
instead ofstd::string_view
, see demo here: https://godbolt.org/z/99Kq6W8ob