Just a tip.
When we made the transition from the VC6 standard to STLPort stl, the main difference that I noticed was the erase method for collections.
In VC6 erase , the next valid iterator is returned.
In STLPort, this simply is not.
So, for these cases, you need to write something like this:
for(iterator it = begin; it != end; ) { iterator next = it; ++next; if ( cond ) collection.erase(it); }
Good luck
source share