Move Constructor Syntax

Walter Bright newshound2 at digitalmars.com
Sat Oct 12 00:57:12 UTC 2024


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.

But writing a function to convert an S to a T, and then set the S to its default 
initializer, should work.



More information about the Digitalmars-d mailing list