Here's a simple example that shows the error:
And I get this error:Code:#include <list> using namespace std; template <class T> class fastlist { public: list<T>::iterator begin(); private: list<T> elements; };
It compiles fine when the member function is list<int>::iterator begin(), but I want begin() to return a list iterator for a list of class T.Code:fastlist.h:6: error: expected `;' before "begin"