Skip to content

CWG2913 [temp.deduct.guide] *requires-clause* in the wrong position in the grammar for *deduction-guide* #576

Description

@zygoloid

Reference (section label): [temp.deduct.guide]

Issue description: CWG2707 added the missing requires-clause to the grammar for deduction-guide, but added it in a position that is inconsistent with function declarations. Since the grammar for deduction guides is supposed to match that of other declarator-based declarations, the requires-clause should be at the end.

Suggested resolution:

Change in [temp.deduct.guide]/1:

deduction-guide:

  • explicit-specifieropt template-name ( parameter-declaration-clause ) requires-clauseopt -> simple-template-id requires-clauseopt ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions