https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86537

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I added the partial specialization in r141512 to meet the updated requirements
in https://wg21.link/n2637 in particular:

    For templates greater, less, greater_equal, and less_equal,
    the partial specializations for shared_ptr yield a total order,
    even if the built-in operators <, >, <=, >= do not.  Moreover,
    less<shared_ptr<T> >::operator()(a, b) shall return
    std::less<T*>::operator()(a.get(), b.get()).

However, https://wg21.link/lwg1262 replaced that wording and removed the need
for a partial specialization of std::less. Despite filing that issue myself I
apparently never fixed GCC.

Reply via email to