Title
Conditions for a deleted move function
Status
nad
Section
11.4.5.3 [class.copy.ctor]
Submitter
Jason Merrill

Created on 2010-06-22.00:00:00 last changed 163 months ago

Messages

Date: 2010-11-15.00:00:00

Rationale (November, 2010):

The CWG felt that the current specification was consistent and not overly problematic; users can add their own move constructor if needed.

Date: 2022-11-20.07:54:16

11.4.5.3 [class.copy.ctor] paragraph 12 says that a defaulted move constructor is defined as deleted if the class has a non-static data member or direct or virtual base class with a type that does not have a move constructor and is not trivially copyable. This seems more strict than is necessary; the subobject need not be trivially copyable, it should be enough for the selected constructor not to throw. In any case, the wording should be phrased in terms of the function selected by overload resolution rather than properties of the subobject type, and similarly for move assignment.

History
Date User Action Args
2010-11-29 00:00:00adminsetmessages: + msg3219
2010-11-29 00:00:00adminsetstatus: open -> nad
2010-06-22 00:00:00admincreate