In C++, why isn't the this keyword a reference?
The this
concept was introduced before the reference concept was. At the time, this
had to be a pointer.Source
From Stroustrup's FAQ
http://www2.research.att.com/~bs/bs_faq2.html#this
The this
concept was introduced before the reference concept was. At the time, this
had to be a pointer.Source
From Stroustrup's FAQ
http://www2.research.att.com/~bs/bs_faq2.html#this