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

[expr.prim.lambda.capture] Fix 'potentially references' for members #5254

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

languagelawyer
Copy link
Contributor

@languagelawyer languagelawyer commented Feb 6, 2022

This editorially limits capture of *this to only when a non-static member of the current class is found. Currently, naming a non-static member of any unrelated class potentially references *this.

I'd wait for #5210 to say \termref{current class}.

Fixes #5243

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 9, 2023

Are you still working on this?

@languagelawyer
Copy link
Contributor Author

@tkoeppe we still do not have #5210 merged. I can rewrite w/o it

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 10, 2023

Ah yes, no worries, we can try to do the terms first!

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

Successfully merging this pull request may close these issues.

[expr.prim.lambda.capture] vs. [basic.def.odr] in their use of «names»/«named by»
2 participants