g++ error: expected ; before “it”
问题 I'm porting C++ app from Solaris to Linux and I'm stuck with the following error. The code is: template <class MapSuperClass> class FWPointerMap : public MapSuperClass { public: FWPointerMap() { _wipe = false; } FWPointerMap(const MapSuperClass* mMap) { MapSuperClass::const_iterator it = mMap->begin(); // line 50 while(it != mMap->end()) { insert(MapSuperClass::value_type((*it).first, (*it).second)); it++; } _wipe = false; } And I get the following error: ../../framework/fwcore/hdr