This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
regarding the depreciated "named return value" C++ extension
- To: <gcc-help at gcc dot gnu dot org>
- Subject: regarding the depreciated "named return value" C++ extension
- From: "Dylan Cuthbert" <dylan at q-games dot com>
- Date: Wed, 24 Oct 2001 16:32:03 +0900
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