Is NRVO part of the spec?

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 7 08:02:28 PST 2015


"Andrei Alexandrescu"  wrote in message 
news:mb59ej$2j7s$1 at digitalmars.com...

> > NRVO isn't required for correct semantics, as structs can be moved with
> > bitcopy.
>
> It is required for structs that disable postblit. -- Andrei

IIRC they only require that no copies are made.  They can still be moved. 



More information about the Digitalmars-d mailing list