This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]