iterator of nested template
In the following simplified code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
#include <iostream>
#include <list>
using namespace std;
template <typename Object>
class foo{
private:
Object o;
public:
foo(){}
void p(){
list<foo<Object> >::iterator i;
}
~foo(){}
};
|
compiler says:
foo.cpp:13: error: expected ā;ā before āiā |
Any possible help?? I definitely need to create an iterator of list of template class...
thank you, that worked :)
Topic archived. No new replies allowed.