Title
Inconsistent requirement for naming template parameters
Status
concepts
Section
13.2 [temp.param]
Submitter
Daniel Krügler

Created on 2009-04-25.00:00:00 last changed 179 months ago

Messages

Date: 2009-04-25.00:00:00

The grammar for constrained-template-parameter given in 13.2 [temp.param] paragraph 1 is:

    constrained-template-parameter:
      ::opt nested-name-specifieropt concept-name ...opt identifieropt
      ::opt nested-name-specifieropt concept-name identifieropt constrained-default-argumentopt
      ::opt nested-name-specifieropt concept-name <
        simple-requirement-argument-list > ...opt identifier
      ::opt nested-name-specifieropt concept-name <
        simple-requirement-argument-list > identifier constrained-default-argumentopt

The identifier naming the parameter is optional in the first two productions but not in the latter two productions. Is there a reason for this discrepancy?

History
Date User Action Args
2009-08-03 00:00:00adminsetstatus: open -> concepts
2009-04-25 00:00:00admincreate