Title
Move constructors and implicitly-declared copy constructors
Status
cd2
Section
11.4.5.3 [class.copy.ctor]
Submitter
Daveed Vandevoorde

Created on 2009-06-04.00:00:00 last changed 171 months ago

Messages

Date: 2010-03-15.00:00:00

[Voted into WP at March, 2010 meeting as document N3053.]

Date: 2009-06-04.00:00:00

A constructor of the form T::T(T&&) is a candidate function for copy construction; however, the declaration of such a constructor does not inhibit the implicit declaration and definition of a copy constructor. This can lead to surprising results. We should consider suppressing the implicit copy constructor if a move constructor is declared.

History
Date User Action Args
2010-03-29 00:00:00adminsetmessages: + msg2722
2010-03-29 00:00:00adminsetstatus: open -> cd2
2009-06-04 00:00:00admincreate