Move Constructor Syntax

Timon Gehr timon.gehr at gmx.ch
Sat Oct 12 22:12:58 UTC 2024


On 10/12/24 02:57, Walter Bright wrote:
> On 10/11/2024 12:06 AM, Manu wrote:
>> But, I think you actually missed my point here; I provided a ref and 
>> non-ref overload for Other... how do I move-construct from some OTHER 
>> type?
> 
> I'm not sure moving a T to an S even makes sense.
> ...

It seems to me that moving a `T` to an `S` and moving a `T` into an 
rvalue constructor call for an `S` is not really a useful distinction, 
and the second thing certainly makes sense.


More information about the Digitalmars-d mailing list