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

CWG2965 [basic.scope.temp] Add a note that a lambda doesn't have a template parameter scope #648

Open
t3nsor opened this issue Dec 3, 2024 · 1 comment

Comments

@t3nsor
Copy link

t3nsor commented Dec 3, 2024

Full name of submitter: Brian Bi

Issue description: It is extremely counterintuitive that a generic lambda doesn't have its own template parameter scope. This should be explicitly called out.

Suggested resolution: Add a note at the end of [basic.scope.temp]/2:

[Note: The optional template-parameter-list of a lambda-expression does not introduce a template parameter scope. — end note]

The description of [CWG2838] should also be amended; it currently claims that there is a template parameter scope there.

@jensmaurer
Copy link
Member

jensmaurer commented Dec 6, 2024

CWG2965

Description of CWG2838 was fixed.

@jensmaurer jensmaurer changed the title [basic.scope.temp] Add a note that a lambda doesn't have a template parameter scope CWG2965 [basic.scope.temp] Add a note that a lambda doesn't have a template parameter scope Dec 6, 2024
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