I am trying to create a template class that passes its template down to a member that is also a template class, as in this example:
template< typename T > class Foo
std::list< T >::iterator i;
// Do stuff
std::list< T > bar;
Compiling (with g++ 3.4.1) gives this error:
vu.cc: In constructor `Foo<T>::Foo()':
vu.cc:8: error: expected `;' before "i"
What is the correct way to do something like this?