Title
Deduction guides cannot have a trailing requires-clause
Status
drwp
Section
13.7.2.3 [temp.deduct.guide]
Submitter
Richard Smith

Created on 2020-02-26.00:00:00 last changed 5 months ago

Messages

Date: 2023-11-16.21:27:26

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

Change the grammar in 13.7.2.3 [temp.deduct.guide] paragraph 1 as follows:

deduction-guide:
   explicit-specifieropt template-name ( parameter-declaration-clause ) requires-clauseopt -> simple-template-id ;
Date: 2024-03-15.00:00:00

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

The grammar for deduction-guide does not, but should, allow a trailing requires-clause:

deduction-guide:
   explicit-specifieropt template-name ( parameter-declaration-clause ) -> simple-template-id ;
History
Date User Action Args
2024-07-20 13:52:34adminsetstatus: dr -> drwp
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
2023-03-11 20:08:20adminsetmessages: + msg7229
2020-02-26 00:00:00admincreate