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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
1.cc | Loading commit data... | |
2.cc | Loading commit data... | |
back_assert_neg.cc | Loading commit data... | |
back_neg.cc | Loading commit data... | |
contiguous_range_neg.cc | Loading commit data... | |
everything.cc | Loading commit data... | |
first_2_assert_neg.cc | Loading commit data... | |
first_assert_neg.cc | Loading commit data... | |
first_neg.cc | Loading commit data... | |
front_assert_neg.cc | Loading commit data... | |
front_neg.cc | Loading commit data... | |
get_neg.cc | Loading commit data... | |
index_op_assert_neg.cc | Loading commit data... | |
index_op_neg.cc | Loading commit data... | |
last_2_assert_neg.cc | Loading commit data... | |
last_assert_neg.cc | Loading commit data... | |
last_neg.cc | Loading commit data... | |
lwg3255.cc | Loading commit data... | |
nothrow_cons.cc | Loading commit data... | |
subspan_2_assert_neg.cc | Loading commit data... | |
subspan_3_assert_neg.cc | Loading commit data... | |
subspan_4_assert_neg.cc | Loading commit data... | |
subspan_5_assert_neg.cc | Loading commit data... | |
subspan_6_assert_neg.cc | Loading commit data... | |
subspan_assert_neg.cc | Loading commit data... | |
subspan_neg.cc | Loading commit data... | |
tuple_element_dynamic_neg.cc | Loading commit data... | |
tuple_element_oob_neg.cc | Loading commit data... | |
tuple_size_neg.cc | Loading commit data... |