Copy elision by spec

monarch_dodra monarchdodra at gmail.com
Sun Nov 3 23:17:11 PST 2013


On Monday, 4 November 2013 at 07:02:26 UTC, Lars T. Kyllingstad 
wrote:
> My question is therefore, is this by design?  Can I rely on 
> this to work in the future, and on all compilers?  If this is 
> the case, it really should be added to the spec.  (Or maybe 
> it's there already, but I couldn't find it.)
>
> Lars

Funny you should ask:
http://d.puremagic.com/issues/show_bug.cgi?id=11287

According to the conversation, NRVO is supposed to be part of the 
spec, and you should expect it to work.


More information about the Digitalmars-d mailing list