string_view
string_view copied to clipboard
substr() throws if pos == size
For example:
string_view x("abc");
string_view y = x.substr(3);
ASSERT_TRUE(y == "");
I would expect an empty string to be returned. Compare https://en.cppreference.com/w/cpp/string/basic_string_view/substr
Note: See also https://github.com/bitwizeshift/string_view-standalone/issues/3, same issue there.
Thank you for report.