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

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Jun 5 09:33:00 GMT 2017


Author: redi
Date: Mon Jun  5 09:33:19 2017
New Revision: 248874

URL: https://gcc.gnu.org/viewcvs?rev=248874&root=gcc&view=rev
Log:
Add noexcept to shared_ptr owner comparisons (LWG 2873)

	* include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
	(__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
	specifiers as per LWG 2873 and LWG 2942.
	* testsuite/20_util/owner_less/noexcept.cc: New.
	* testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
	noexcept guarantees.
	* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/20_util/owner_less/noexcept.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/observers/owner_before.cc
    trunk/libstdc++-v3/testsuite/20_util/weak_ptr/observers/owner_before.cc



More information about the Libstdc++-cvs mailing list