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

Typo in P1358R0 issue #2358 (Explicit capture of value)... #2680

Closed
preney opened this issue Feb 23, 2019 · 0 comments
Closed

Typo in P1358R0 issue #2358 (Explicit capture of value)... #2680

preney opened this issue Feb 23, 2019 · 0 comments

Comments

@preney
Copy link

preney commented Feb 23, 2019

In P1358R0 issue number "2358. Explicit capture of value", the proposed resolution text to change change 7.5.5.2 [expr.prim.lambda.capture] paragraph 9 has a typo, i.e., this text:

void g6(int = ([x=1] { return x; })();     // OK
void g7(int = ([x=i] { return x; })();     // ill-formed

should be this text:

void g6(int = ([x=1] { return x; })());     // OK
void g7(int = ([x=i] { return x; })());     // ill-formed

i.e., closing parentheses are needed for the g6() and g7() function calls in the example.

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

1 participant