   C++ Templates with GCC
  Hey, I've been working on porting a program that I'm working on with a friend.  We are porting from MSVC to GCC.  We have solved nearly all of our problems thus far; however, we are both unable to figure this one out.This template compiles fine in MSVC, but in GCC it states that "it" is not defined.template <class map>inline void DeleteSTLMap(map& m){  for (map::iterator it = m.begin(); it!=m.end(); ++it)  {    delete it->second;    it->second = NULL;  }}Thanks.   
for (typename map::iterator it = m.begin(); it!=m.end(); ++it)The compiler doesn't know what map::iterator is because it doesn't know what map is.  You need to tell it that it's a type, not, for example, a constant variable.   ;  FYI, it only compiles under MSVC because they offer a language extension to allow it. The standard requires use of the typename keyword.   ;  Wow; fast response.  Thank you, as this appears to have solved our issue.Again, thanks.   