MyClass * ptr = new MyClass ();
My question is really about when building a class, should I bother to make excessive use of the "this" pointer? By excessive use I mean making sure every single time I access a variable or member within my class I reference it with the "this" pointer, even if it is pointing at another pointer,
ie I am building a class based wrapper for DirectShow and DarkGDK and I up getting lines of code like this line of code:
I really just want to know if there is any advantage (such as better performance or safer operation) to using "this" other than the autocomplete feature in Visual Studios (IntelliSense). Can using "this" be a bad thing in some or any cases?
I have tried using Google to find my answer but search engines don't mix well with generic terms
This post has been edited by ABXG: 08 June 2009 - 01:12 AM