Closed RobLoach closed 6 days ago
One problem with std::string_view is, it's not guaranteed to be a null-terminated string.
std::string_view
I would love to replace const std::string& with something like std::string_view, but I wouldn't recommend it.
const std::string&
We probably need something like zstring_view. Shouldn't be that hard to implement
Agreed, and because performance isn't the primary goal of this library, it may not be worth its adoption.
One problem with
std::string_view
is, it's not guaranteed to be a null-terminated string.I would love to replace
const std::string&
with something likestd::string_view
, but I wouldn't recommend it.We probably need something like zstring_view. Shouldn't be that hard to implement