We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string_view::copy
std::out_of_range
In the spirit of #355, absl::string_view::copy should also throw std::out_of_range when pos > size().
absl::string_view::copy
pos > size()
https://en.cppreference.com/w/cpp/string/basic_string_view/copy
vs
https://github.com/abseil/abseil-cpp/blob/14550beb3b/absl/strings/string_view.cc#L83
assert(pos <= ulen);
The text was updated successfully, but these errors were encountered:
67222ff
Export of internal Abseil changes
7bc61fd
-- 5315e7b98905922e779798f3168d98343438c134 by Derek Mauro <dmauro@google.com>: Fix absl::string_view::copy to throw std::out_of_range when pos > size(). Fixes abseil/abseil-cpp#362 PiperOrigin-RevId: 261907364 GitOrigin-RevId: 5315e7b98905922e779798f3168d98343438c134 Change-Id: Ia8ab971c54f287411f6ea4b99f9c666c989c33fd
derekmauro
No branches or pull requests
In the spirit of #355,
absl::string_view::copy
should also throwstd::out_of_range
whenpos > size()
.https://en.cppreference.com/w/cpp/string/basic_string_view/copy
vs
https://github.com/abseil/abseil-cpp/blob/14550beb3b/absl/strings/string_view.cc#L83
The text was updated successfully, but these errors were encountered: