This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.1 changes.html and the NRVO


>>>>> "Phil" == Phil Edwards <phil@jaj.com> writes:

> Didn't we used to do the NRVO at one time?  In which case, shouldn't that
> line read, "G++ again supports"?  I.e., s/now/again/ ?

No, we used to have an extension whereby you could explicitly request the
NRVO, using syntax something like

  A f () return a;
  {
    a += 2;
  }

The compiler will now do this automatically for standard-conforming code.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]