Skip to content

Example in [temp.variadic] attached to wrong paragraph #964

Closed
@brevzin

Description

@brevzin

[temp.variadic]/4 defines a pack expansion and enumerates the contexts in which it can occur.

[temp.variadic]/5 contains a resolution of core issue 1662 about parameter pack instantiations being considered entities, and also this example:

template<class ... Types> void f(Types ... rest);
template<class ... Types> void g(Types ... rest) {
    f(&rest ...); // “&rest ...” is a pack expansion; “&rest” is its pattern
}

This example used to be attached to [temp.variadic]/4, to which it directly relates. The example should be moved up a paragraph. As is, it's a little odd as the example doesn't relate at all to the paragraph it is attached to.

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