Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2023-02-20 22:00:44


On 21/02/2023 00:30, Andrey Semashev wrote:
> I think you're missing the point that operator== isn't always used to
> implement equivalence. This is also true wrt. other operators and their
> default function. We have a number of lambda libraries in Boost, as well
> as Boost.Proto and Boost.Spirit that wouldn't have existed if we
> followed your logic.

No, I addressed that. Even in lambda libraries, operator== should be
used only for equivalence (as an indirection rather than directly), and
as such it should still be commutative and agnostic of specific order.
Assuming that, it shouldn't be broken by the C++20 changes.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk