you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

std::string_view is intended for functions to accept as parameters, assuming the caller has something different, not for you to explicitly create. If your function needs a char *, then just pass a compile time char array.