This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Question on move constructor
- From: Graziano Servizi <Graziano dot Servizi at bo dot infn dot it>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Jan 2013 16:05:52 +0100
- Subject: RE: Question on move constructor
> I'm sorry; I made a mistake: it was the DESTRUCTOR (which IS
provided) that
> needed to be noexcept-ed. On my system, if I didn't so, there are
> 3 moves and 3 copies (as you said), while with a noexcept DESTRUCTOR
no copy
> occurs: only 6 moves.
Ah yes, with GCC 4.7 that is necessary.
I was testing with GCC trunk which has implicit noexcept on
destructors (as required by C++11)
OK, all is fine!
GS