Subject: Re: [std-proposals] Operator for reference casting
From: Magnus Fromreide (magfr_at_[hidden])
Date: 2021-01-16 16:24:45
On Sat, Jan 16, 2021 at 05:38:52PM +0100, Bengt Gustafsson via Std-Proposals wrote:
> Given that a language feature has more wiggle room we could define two
> different operators with limitations in applicability that can't be enforced
> for a library feature such as std::forward / std::move.
> prefix -> is a forwarding operator which can only be applied to universal
> references, i.e. parameters declared with deduced template type and a &&
> prefix => is a move operator which can only be applied to by value variables
> and rvalue references (excluding universal references!).
So, x <=> y means operator<(x, =>y), right?
STD-PROPOSALS list run by email@example.com
Standard Proposals Archives on Google Groups