Skip to content

[stmt.expand] Follow up CWG3048 #908

@xmcgcg

Description

@xmcgcg

Full name of submitter: Geng Cheng

Reference: [stmt.expand]

Issue description:
The resolution of CWG3048 introduced the N=0 special case for destructuring expansion statements. The expansion result includes the following declaration:

constexpropt auto&& range = expansion-initializer ;

Unfortunately, the last paragraph of bullet 5.3 does not cover this declaration, therefore it is unclear in which scenario the constexpr keyword should be present.

Suggested resolution:
In the last paragraph of bullet 5.3, include this declaration as well:
... The keyword constexpr is present in the declaration of range and the structured-binding-declaration of u0, u1, . . . , uN−1 if and only if ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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