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

[dcl.fct.def.coroutine] mention of *this does not make sense after P0847R7 CWG2754 #5085

Closed
cpplearner opened this issue Nov 4, 2021 · 2 comments
Assignees
Labels
cwg Issue must be reviewed by CWG.

Comments

@cpplearner
Copy link
Contributor

[dcl.fct.def.coroutine]/4:

For a non-static member function, q1 is an lvalue that denotes *this; any other qi is an lvalue that denotes the parameter copy corresponding to pi, as described below.

P0847R7 (69392bf) adds explicit object member functions, which are non-static member functions but don't have this. The definition of q1 does not make sense in this case.

The proposed wording in P0847R7 does not contain this sentence, probably because the sentence was added by CWG2465 (8a70399), which is fairly recent.

@jensmaurer
Copy link
Member

This should read "implicit object member function", I think.

@frederick-vs-ja
Copy link
Contributor

This is now CWG2754.

@jensmaurer jensmaurer changed the title [dcl.fct.def.coroutine] mention of *this does not make sense after P0847R7 [dcl.fct.def.coroutine] mention of *this does not make sense after P0847R7 CWG2754 Jul 26, 2023
@jensmaurer jensmaurer added the cwg Issue must be reviewed by CWG. label Jul 26, 2023
@tkoeppe tkoeppe closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants