Move Constructors - Converting Lvalues to Rvalues

Walter Bright newshound2 at digitalmars.com
Tue Oct 1 17:39:45 UTC 2024


On 10/1/2024 1:59 AM, Richard (Rikki) Andrew Cattermole wrote:
> Why do you need to?

A move constructor just has to initialize the object. A move assignment has to 
destroy the target first, then move.

They are fundamentally different.


More information about the Digitalmars-d mailing list