   Template classes in container
  I'm having problems creating a map of templated classes. It seems to have no problem with the map itself, but doesn't like iterators for it. Here's as simple as I can get it:template<class T>class A{};template<class T>class B{std::map<int, A<T> >::iterator iter; // error: expected ';' before "iter"};It's weird, because I seem to be able to use iterators returned by the map. I guess I'm just declaring them wrong somehow. Oh, and I'm using mingw.Thanks!   
  You probably need to add typename to your iterator declaration:typename std::map< int, A< T > >::iterator iter;jfl.   ;  Awesome! That works, but why is it needed? Is it ambiguous in some way without it?   ;  I can't find it anymore, but there was a great article about templates and dependent names. This looks like a good substitution, though.jfl.   