C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Copy-construct, move-construct, and PR-construct

From: sarah.kernighan_at <sarah.kernighan_at_[hidden]>
Date: Wed, 23 Aug 2023 00:20:44 +0200

On Mon 21 Aug 2023, Frederick Virchanza Gotham wrote:
>
> I don't want to introduce a new kind of reference. I don't want to be
> able to do this:
>
>     int ^^a = b;
>
> The use of the unary '^^' operator would only be seen in the parameter
> list of a function that takes one and only one argument -- usually a
> constructor or an overloaded assignment operator.
 
 
 
Could it be used for any function? Or is it exclusively for constructor and assignment operators?

Received on 2023-08-23 15:51:24