Move Constructor Syntax

Walter Bright newshound2 at digitalmars.com
Mon Oct 14 02:49:42 UTC 2024


On 10/11/2024 8:44 AM, Manu wrote:
> No that's wrong; this is EXACTLY the situation that move semantics exist to 
> address. Move constructor like this should ACTUALLY BE a move constructor!

But currently this(S) is an rvalue constructor, not a move constructor. I've 
said this many times.

Changing it would break existing code.


More information about the Digitalmars-d mailing list