C ++で「this」を使用しないのではなく、クラスメンバーを参照するために「this」を使用することには、何らかの利点があるのではないかと思っていましたか?
例えば...
class Test
{
public:
Test();
void print_test()
{
std::cout << this -> m_x // Using 'this'
<< endl;
std::cout << m_x // Rather than referencing 'm_x' this way
<< endl;
}
private:
int m_x;
int m_y;
};