aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-12-10 23:50:26 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-12-10 23:50:26 +0000
commitcff87282f4f50c2fd471a2fe0df49312716a8caf (patch)
tree86eeb876af5718df8e8f38dd5347d6e2c594a446 /gcc
parenta6ae300f9a019aff902cd11068af0956288d6541 (diff)
downloadgcc-cff87282f4f50c2fd471a2fe0df49312716a8caf.zip
gcc-cff87282f4f50c2fd471a2fe0df49312716a8caf.tar.gz
gcc-cff87282f4f50c2fd471a2fe0df49312716a8caf.tar.bz2
libstdc++: Correct noexcept-specifiers on span constructors
As discussed at https://github.com/cplusplus/draft/issues/3534 two std::span constructors specify incorrect conditions for throwing exceptions. This patch makes those constructors have correct noexcept-specifiers that accurately reflect what can actually throw. (span(ContiguousIterator, Sentinel)): Add conditional noexcept. * include/std/span (span(ContiguousIterator, size_type)): Change noexcept to be unconditionally true. * testsuite/23_containers/span/nothrow_cons.cc: New test. From-SVN: r279206
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions