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

[class.this]/1 lags behind in terms of pointer values #2311

Closed
languagelawyer opened this issue Aug 29, 2018 · 0 comments
Closed

[class.this]/1 lags behind in terms of pointer values #2311

languagelawyer opened this issue Aug 29, 2018 · 0 comments
Assignees

Comments

@languagelawyer
Copy link
Contributor

[class.this]/1: In the body of a non-static ([class.mfct]) member function, the keyword this is a prvalue whose value is the address of the object for which the function is called.

I think the value of this should be "pointer to", because there is no such value as "address of":
Every value of pointer type is one of the following:
— a pointer to an object or function (the pointer is said to point to the object or function), or
— a pointer past the end of an object ([expr.add]), or
— the null pointer value ([conv.ptr]) for that type, or
— an invalid pointer value.

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