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: How to turn off NRVO in gcc


"Debarshi Sanyal" <debarshisanyal@gmail.com> writes:

>    Is there any way to turn off "named return value optimization"
> (NRVO) while compiling a C++ program with g++?

This question is not appropriate for gcc@gcc.gnu.org, which is for
developers of gcc.  It is appropriate for gcc-help@gcc.gnu.org.
Please take any followups to that mailing list.  Thanks.

The answer to your question is no.  g++ will always implement NRVO
when possible.

Ian


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