Title
Prohibit explicit object parameters for constructors
Status
tentatively ready
Section
11.4.5.1 [class.ctor.general]
Submitter
Erich Keane

Created on 2022-01-11.00:00:00 last changed 3 weeks ago

Messages

Date: 2023-01-07.14:31:02

Proposed resolution (approved by CWG 2023-01-06):

Add a new paragraph after 11.4.5.1 [class.ctor.general] paragraph 7 as follows:

A constructor shall not be a coroutine.

A constructor shall not have an explicit object parameter (9.3.4.6 [dcl.fct]).

Date: 2023-01-07.14:31:02

Constructors are not intended to have explicit object parameters, but the standard is missing a corresponding prohibition.

History
Date User Action Args
2023-01-07 14:31:02adminsetmessages: + msg7121
2023-01-07 14:31:02adminsetstatus: open -> tentatively ready
2022-01-11 00:00:00admincreate