Skip to content

[dcl.fct.default]/9 Redundant function type specification about default arguments #1011

Description

@BlowingWind314

Full name of submitter (unless configured in github; will be published with the issue): Yin Xinyu

[dcl.fct.default]/9 says

... A default argument is not part of the type of a function.

However, previously [dcl.fct]/13 has said

The return type, the parameter-type-list, the ref-qualifier, the cv-qualifier-seq, and the exception specification, but not the default arguments ([dcl.fct.default]) or the trailing requires-clause ([dcl.decl]), are part of the function type.

Is there any difference between "the type of a function" and "the function type"?

Suggested resolution:

Edit [dcl.fct.default]/9

... [Note X: A default argument is not part of the type of a function. - end note]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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