diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-07-14 11:03:17 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-07-14 12:23:33 +0100 |
commit | f9c2ce1dae270d8d5dc261a57a21f96a1da5ea2d (patch) | |
tree | 6eba485c5f94f880078818b4ab5572108e67aff5 /gcc | |
parent | a967a3efd39280fe3f5774e45490e991f8e99059 (diff) | |
download | gcc-f9c2ce1dae270d8d5dc261a57a21f96a1da5ea2d.zip gcc-f9c2ce1dae270d8d5dc261a57a21f96a1da5ea2d.tar.gz gcc-f9c2ce1dae270d8d5dc261a57a21f96a1da5ea2d.tar.bz2 |
libstdc++: Add noexcept-specifier to basic_string_view(It, End)
This adds a conditional noexcept to the C++20 constructor. The
std::to_address call cannot throw, so only taking the difference of the
two iterators can throw.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/std/string_view (basic_string_view(It, End)): Add
noexcept-specifier.
* testsuite/21_strings/basic_string_view/cons/char/range.cc:
Check noexcept-specifier. Also check construction without CTAD.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions