Struct that destroys its original handle on copy-by-value

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 31 12:18:59 PDT 2015


On 7/31/15 1:21 PM, Ali Çehreli wrote:

> Disallowing automatic copying and providing a function comes to mind.

Isn't that what std.algorithm.move is for?

-Steve


More information about the Digitalmars-d-learn mailing list