invalid use of ‘this’ outside of a non-static member function error? needs to be You shouldnt need this in the first place.