`string_view` instead of `string`?
Closed this issue · 2 comments
RobLoach commented
`string_view` instead of `string`?
furudbat commented
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 like std::string_view
, but I wouldn't recommend it.
We probably need something like zstring_view. Shouldn't be that hard to implement
RobLoach commented
Agreed, and because performance isn't the primary goal of this library, it may not be worth its adoption.