Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brevzin opened this issue Nov 2, 2016 · 0 comments
Closed

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

brevzin opened this issue Nov 2, 2016 · 0 comments
Assignees

Comments

@brevzin
Copy link
Contributor

brevzin commented Nov 2, 2016

[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants