Skip to content

[intro.defs] Should the definition of 'signature' explicitly exclude default template arguments? #1702

Open
@cpplearner

Description

@cpplearner

The definition of 'signature' for function template in N4687 [defns.signature.templ] says:

signature
〈function template〉 name, parameter type list (11.3.5), enclosing namespace (if any), return type, template-head, and requires-clause (17.4.2) (if any)

It could be read to mean that default template arguments, which are declared in the template-head, are part of the signature.

Should the standard somehow clarify that default template arguments are not included in the signature?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions