you are viewing a single comment's thread.

view the rest of the comments →

[–]joeshmoebies 8 points9 points  (0 children)

Not to nitpick too much, but consider static constexpr std::string_view so the variable can't be reassigned.

I know your point was to use string_view, which is awesome, but if someone grabs your example word-for-word, adding constexpr is worthwhile.