~= call copy ctor?

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 20 08:08:47 PDT 2012


On Friday, July 20, 2012 15:50:19 Namespace wrote:
> Why on earth....?

http://stackoverflow.com/questions/6884996/questions-about-postblit-and-move-
semantics

If you want to guarantee that you don't get any copies while moving an object 
around, it needs to be a reference type (which would include a pointer to a 
value type).

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list