C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Manifold comparison operator

From: Fabio Alemagna <falemagn_at_[hidden]>
Date: Mon, 25 Sep 2023 01:26:07 +0200
I somehow managed to drop the discussion out of the list. Here it is again.

Il giorno lun 25 set 2023 alle ore 00:54 Fabio Alemagna
<falemagn_at_[hidden]> ha scritto:
>
> Il giorno dom 24 set 2023 alle ore 23:53 Ville Voutilainen
> <ville.voutilainen_at_[hidden]> ha scritto:
> >
> > On Mon, 25 Sept 2023 at 00:49, Fabio Alemagna <falemagn_at_[hidden]> wrote:
> > >
> > > Il giorno dom 24 set 2023 alle ore 23:43 Ville Voutilainen
> > > <ville.voutilainen_at_[hidden]> ha scritto:
> > > > > Lvalues are stored as references, though: notice the template deduction guide.
> > >
> > > I ought to correct myself: temporaries are moved, if their types
> > > possess a move constructor, as per tuple's perfect forwarding.
> >
> > Aye. And you have to do that, because C++ can't initialize a
> > tuple-element reference and do lifetime-extension,
> > like it can for a member of a plain struct.
>
> Updated to support quantifiers on both ends of the relational
> operators: all I had to do was remove the ambiguity between the
> in-class relational operators and the out-of-class ones.
>
> On godbot: https://godbolt.org/z/zP31fn91r

Received on 2023-09-24 23:26:20