sVirgo2008
Programmer
T& operator*(){return *ptr;}
T& operator->(){return ptr);
Why do we return in one case *ptr and in other case ptr whereas return in both cases is a reference.
T& operator->(){return ptr);
Why do we return in one case *ptr and in other case ptr whereas return in both cases is a reference.