On 06/01/10 17:42, Ian Lance Taylor wrote:

The biggest need for this->  is when calling methods in the current
class if the current class happens to be in a template.
The 'this->' is needed when the current class and base class are both
templates and the name is declared in the base class, and not if it's
declared in the current class.  That is not likely to happen in a
hurry while the convention is to not define any templates.
Right, but it may happen some day.  Also there is the issue of
clarity.  I think it is clearer to see this->get() rather than get().
Agreed. For me at least, that style is far easier to read and understand. It's very clear what "get" means.

Jeff

Reply via email to