r279206 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Dec 10 23:50:00 GMT 2019


Author: redi
Date: Tue Dec 10 23:50:26 2019
New Revision: 279206

URL: https://gcc.gnu.org/viewcvs?rev=279206&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/span/nothrow_cons.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/span



More information about the Libstdc++-cvs mailing list