Title
LWG 2873's resolution missed weak_ptr::owner_before
Status
c++20
Section
[util.smartptr.weak.obs]
Submitter
Tim Song

Created on 2017-03-09.00:00:00 last changed 45 months ago

Messages

Date: 2017-06-10.21:25:02

Proposed resolution:

This wording is relative to N4659.

  1. Edit [util.smartptr.weak], class template weak_ptr synopsis, as indicated:

    […]
    // [util.smartptr.weak.obs], observers
    […]
    template<class U> bool owner_before(const shared_ptr<U>& b) const noexcept;
    template<class U> bool owner_before(const weak_ptr<U>& b) const noexcept;
    
  2. Edit [util.smartptr.weak.obs] immediately before p4 as indicated:

    template<class U> bool owner_before(const shared_ptr<U>& b) const noexcept;
    template<class U> bool owner_before(const weak_ptr<U>& b) const noexcept;
    

    -4- Returns: An unspecified value such that […]

Date: 2017-06-15.00:00:00

[ 2017-06-03, Moved to Tentatively Ready after 6 positive votes on c++std-lib ]

Date: 2017-03-09.00:00:00

The NB comment asked for noexcept on shared_ptr::owner_before, weak_ptr::owner_before, and owner_less::operator(), but the PR of LWG 2873 only added it to the first and the third one.

History
Date User Action Args
2021-02-25 10:48:01adminsetstatus: wp -> c++20
2017-07-30 20:18:47adminsetstatus: voting -> wp
2017-06-26 13:46:20adminsetstatus: ready -> voting
2017-06-10 21:25:02adminsetmessages: + msg9241
2017-06-10 21:25:02adminsetstatus: new -> ready
2017-03-16 19:40:35adminsetmessages: + msg9126
2017-03-09 00:00:00admincreate