This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: A query on C++ Temporary Objects
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Arijit Das <arijit_engg2001 at yahoo dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 18 Apr 2006 09:24:57 -0700
- Subject: Re: A query on C++ Temporary Objects
- References: <20060418072751.70940.qmail@web33301.mail.mud.yahoo.com>
On Tue, Apr 18, 2006 at 12:27:51AM -0700, Arijit Das wrote:
> Stroustroup, in his book "The C++ Programming
> Language" (Section 10.4.10), says that 'Temporary
> objects are destroyed when its reference or named
> object goes out of scope.'
Your question is about the semantics of the C++ language and the
justifications for it. That's not what this list is for; it is only for
the development of the GNU C++ standard library. A forum like
comp.lang.c++.moderated would be a better place to get your question
answered.