Move Constructor Syntax
Timon Gehr
timon.gehr at gmx.ch
Mon Oct 14 04:06:51 UTC 2024
On 10/14/24 04:47, Walter Bright wrote:
> On 10/12/2024 3:12 PM, Timon Gehr wrote:
>> 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.
>
> Moving into an existing object is not the same as moving into an object
> that has not been constructed yet.
That's the move constructor vs move assign distinction. I was talking
about construction as this thread is about move construction.
More information about the Digitalmars-d
mailing list