aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-07-14 11:03:17 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-07-14 12:23:33 +0100
commitf9c2ce1dae270d8d5dc261a57a21f96a1da5ea2d (patch)
tree6eba485c5f94f880078818b4ab5572108e67aff5 /gcc
parenta967a3efd39280fe3f5774e45490e991f8e99059 (diff)
downloadgcc-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