Title
Prohibit explicit object parameters for constructors
Status
c++23
Section
11.4.5.1 [class.ctor.general]
Submitter
Erich Keane

Created on 2022-01-11.00:00:00 last changed 8 months 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-02-15.00:00:00

[Accepted at the February, 2023 meeting.]

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

History
Date User Action Args
2023-07-16 13:00:43adminsetstatus: open -> c++23
2023-07-16 13:00:43adminsetstatus: accepted -> open
2023-02-18 18:43:04adminsetstatus: ready -> accepted
2023-02-07 05:27:52adminsetstatus: tentatively ready -> ready
2023-01-07 14:31:02adminsetmessages: + msg7121
2023-01-07 14:31:02adminsetstatus: open -> tentatively ready
2022-01-11 00:00:00admincreate