This is the mail archive of the
mailing list for the GCC project.
Re: 3.1 changes.html and the NRVO
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 04 May 2002 00:38:23 +0200
- Subject: Re: 3.1 changes.html and the NRVO
- Organization: CodeSourcery, LLC
- References: <20020502172937.A13390@disaster.basement.lan>
Phil Edwards <email@example.com> writes:
| Didn't we used to do the NRVO at one time?
Not really. Way back, the front-end infrastructure was very limited
so that we couldn't support the Return Value Optimization within
standard C++. Therefore a really non standard syntax was invented to
tell the parser that we wanted to return something:
operator+(complex<double> a, complex<double> b) returns r;
Given that, I don't think we can reasonably say that we're doing the NRVO.