I am trying to get some code I found online to compile. It looked like this:
#include <iostream>
#include <list>
using std::list;
template <class T>
class leda_list : public std::list<T>
{
private:
iterator loopIter;
the error was: ‘iterator’ does not name a type
I tried changing it to:
list<T>::iterator loopIter;
but it says "ISO C++ forbids declaration of ‘iterator’ with no type".
Any thoughts on what could be the problem?
Thanks,
Dave