RobLoach/raylib-cpp

`string_view` instead of `string`?

Closed this issue · 2 comments

`string_view` instead of `string`?

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

Agreed, and because performance isn't the primary goal of this library, it may not be worth its adoption.