Move Constructors - Converting Lvalues to Rvalues

Walter Bright newshound2 at digitalmars.com
Wed Oct 2 17:19:06 UTC 2024


On 10/1/2024 1:15 PM, Timon Gehr wrote:
> I guess the new implementation you have in mind is something like the following?
> 
> ```d
> auto move(T)(ref T arg)=>__rvalue(arg);
> ```

Not exactly. __rvalue would also convert an rvalue to an rvalue.


More information about the Digitalmars-d mailing list