This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Weird (unintuitive?) behavior of std::tuple
- From: Paolo Carlini <pcarlini at gmail dot com>
- To: Tomasz Gajewski <tomga at wp dot pl>
- Cc: Alex Dubov <oakad at yahoo dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 30 Oct 2010 15:57:40 +0200
- Subject: Re: Weird (unintuitive?) behavior of std::tuple
- References: <loom.20101029T194502-571@post.gmane.org> <87aalv3ifm.fsf@vitiris.tt.com.pl>
> Isn't it just that default copy constructors are called making copies of
> objects so destructors are called twice: once for "original" object and
> once for it's copy?
Indeed. But this is the right reply for a message properly sent to gcc-help ;)
Paolo