This is the mail archive of the gcc-help@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]

regarding the depreciated "named return value" C++ extension


Hi there,

I have a question regarding the "named return value" extension to C++ that
GCC versions prior to 3.0 had implemented.

Why has it become unnecessary to include this feature?  Does the C++
standard now allow for this kind of optimizing without the need to declare
it specifically?  Does this mean that a copy constructor might not be called
in order to return a variable created locally to the function's caller?

Regards

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com

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