Re: [PATCH] Add noexcept to shared_ptr owner comparisons (LWG 2873)

2017-09-05 Thread Jonathan Wakely
On 05/09/17 08:30 +0200, Christophe Lyon wrote: Hi Jonathan On 5 June 2017 at 11:34, Jonathan Wakely wrote: C++17 requires these to be noexcept, and there's no reason not to do it for earlier standard modes too. * include/bits/shared_ptr_base.h (__shared_ptr::owner_before) (__

Re: [PATCH] Add noexcept to shared_ptr owner comparisons (LWG 2873)

2017-09-04 Thread Christophe Lyon
Hi Jonathan On 5 June 2017 at 11:34, Jonathan Wakely wrote: > C++17 requires these to be noexcept, and there's no reason not to do > it for earlier standard modes too. > > * include/bits/shared_ptr_base.h (__shared_ptr::owner_before) > (__weak_ptr::owner_before, _Sp_owner_less::op

[PATCH] Add noexcept to shared_ptr owner comparisons (LWG 2873)

2017-06-05 Thread Jonathan Wakely
C++17 requires these to be noexcept, and there's no reason not to do it for earlier standard modes too. * 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 294