gcc 3.3.2 problem with STL MAP container

Eljay Love-Jensen eljay@adobe.com
Tue Feb 8 22:10:00 GMT 2005


HI Morten,

 >typename  map<T, A>::const_iterator ci;
 >for ( ci = v.begin();
 >
 >could not be changed to
 >
 >map<T, A>::const_iterator ci;
 >for (typename ci = v.begin();

That should not compile, so the compiler is working as designed.

Try this:

for (typename  map<T, A>::const_iterator ci = v.begin();

HTH,
--Eljay



More information about the Gcc-help mailing list