Title
const mismatch with defaulted copy constructor
Status
extension
Section
15.8 [class.copy]
Submitter
Daniel Kr├╝gler

Created on 2011-06-15.00:00:00 last changed 94 months ago

Messages

Date: 2011-08-15.00:00:00

Rationale (August, 2011):

Possible resolutions to this issue need to be considered in a wider context, so it is more appropriate for the Evolution Working Group.

Date: 2014-03-03.00:00:00

The current requirements of 11.4.2 [dcl.fct.def.default] paragraph 1 state that a defaulted copy constructor or copy assignment operator can have a reference to const parameter only if all its subobjects have corresponding functions with a reference to const parameter, even if that function is never called. This prevents some useful template classes.

(See also library issue 2068.)

See also issue 1426.

History
Date User Action Args
2012-09-24 00:00:00adminsetmessages: + msg4038
2011-06-15 00:00:00admincreate