Why is `this` a pointer and not an rvalue reference in C++?

What was the thought behind making this a pointer of T, instead of T&&?


This content originally appeared on DEV Community and was authored by Calin Baenen

What was the thought behind making this a pointer of T, instead of T&&?


This content originally appeared on DEV Community and was authored by Calin Baenen


Print Share Comment Cite Upload Translate Updates
APA

Calin Baenen | Sciencx (2021-11-16T22:32:46+00:00) Why is `this` a pointer and not an rvalue reference in C++?. Retrieved from https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/

MLA
" » Why is `this` a pointer and not an rvalue reference in C++?." Calin Baenen | Sciencx - Tuesday November 16, 2021, https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/
HARVARD
Calin Baenen | Sciencx Tuesday November 16, 2021 » Why is `this` a pointer and not an rvalue reference in C++?., viewed ,<https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/>
VANCOUVER
Calin Baenen | Sciencx - » Why is `this` a pointer and not an rvalue reference in C++?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/
CHICAGO
" » Why is `this` a pointer and not an rvalue reference in C++?." Calin Baenen | Sciencx - Accessed . https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/
IEEE
" » Why is `this` a pointer and not an rvalue reference in C++?." Calin Baenen | Sciencx [Online]. Available: https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/. [Accessed: ]
rf:citation
» Why is `this` a pointer and not an rvalue reference in C++? | Calin Baenen | Sciencx | https://www.scien.cx/2021/11/16/why-is-this-a-pointer-and-not-an-rvalue-reference-in-c/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.