Ruling out arbitrary cost copy construction?

Rainer Deyke rainerd at eldwood.com
Wed Oct 6 19:06:53 PDT 2010


On 10/6/2010 19:58, Andrei Alexandrescu wrote:
> Once the copy constructor has constant complexity, moving vs. copying
> becomes a minor optimization.

this(this) {
  sleep(1000000000); // <-- Constant amount.
}


-- 
Rainer Deyke - rainerd at eldwood.com


More information about the Digitalmars-d mailing list