Problem:
The operator -> is overloaded thus
Class * operator-> () { return this; }
but this causes a problem for const member functions . The purpose of overloading is that both . and -> can be used .
Is there a way out for const member function ?
The operator -> is overloaded thus
Class * operator-> () { return this; }
but this causes a problem for const member functions . The purpose of overloading is that both . and -> can be used .
Is there a way out for const member function ?