Title
Injected-class-name as a simple-template-id
Status
dr
Section
11.1 [class.pre]
Submitter
Shafik Yaghmour

Created on 2022-10-26.00:00:00 last changed 2 weeks ago

Messages

Date: 2023-11-16.21:27:26

Proposed resolution (approved by CWG 2023-11-11):

Change in 11.1 [class.pre] paragraph 2 as follows:

The component name of the class-name is also bound in the scope of the class (template) itself; this is known as the injected-class-name. ...
Date: 2024-03-15.00:00:00

[Accepted as a DR at the March, 2024 meeting.]

Issue 2237 sought to disallow simple-template-ids as constructor names, by referring to the injected-class-name. However, 11.1 [class.pre] paragraph 2 specifies:

The class-name is also bound in the scope of the class (template) itself; this is known as the injected-class-name.

The grammar non-terminal class-name includes the option of a simple-template-id (for declaring a partial specialization).

History
Date User Action Args
2024-04-05 21:43:46adminsetstatus: ready -> dr
2024-03-20 14:10:31adminsetstatus: tentatively ready -> ready
2023-11-16 21:27:26adminsetstatus: open -> tentatively ready
2022-10-28 18:44:38adminsetmessages: + msg6957
2022-10-26 00:00:00admincreate