r250540 - in /branches/gcc-7-branch/libstdc++-v...
redi@gcc.gnu.org
redi@gcc.gnu.org
Tue Jul 25 18:05:00 GMT 2017
Author: redi
Date: Tue Jul 25 18:05:19 2017
New Revision: 250540
URL: https://gcc.gnu.org/viewcvs?rev=250540&root=gcc&view=rev
Log:
Add noexcept to shared_ptr owner comparisons (LWG 2873)
Backport from mainline
2017-06-05 Jonathan Wakely <jwakely@redhat.com>
* 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:
branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/owner_less/noexcept.cc
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/bits/shared_ptr_base.h
branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/shared_ptr/observers/owner_before.cc
branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/weak_ptr/observers/owner_before.cc
More information about the Libstdc++-cvs
mailing list