When trying to compile this code:
/*begin headerfile.h*/
#include <list>
using namespace std;
template <class T> class MyList : public list<T>
{
public:
MyList<T>::iterator find(T pObj);
};
/*end headerfile.h*/
I get a strange error:
"error : expected ';' before find"
I use g++ v.4.1.0
What could be the problem? This code compiles perfectly in Windows and
Solaris.
thanx,
Stefan.
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus