Skip to content

[basic.pre] pack should be parameter pack #7236

Closed
@ContingencyOfTautologicalContradictions

Description

Edit https://eel.is/c++draft/basic.pre#3 from:

An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.

to

An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or parameter pack.

Activity

cpplearner

cpplearner commented on Aug 20, 2024

@cpplearner
Contributor

No, an init-capture pack is also a pack.

template <typename... Args>
void foo(Args... args) {
    [...xs=args]{
        bar(xs...);             // xs is an init-capture pack
    };
}
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

        Participants

        @cpplearner@ContingencyOfTautologicalContradictions

        Issue actions

          [basic.pre] ``pack`` should be ``parameter pack`` · Issue #7236 · cplusplus/draft