Hi Chen,
I think the problem is also not using the iterator in the style that the
iterator algorithm was originally intended. I have used your style as it hides
the iterator declation when the for loop goes out of scope, but I think the
expected usage was more along the lines of:
{
iterator iter = map.begin();
while( iter != map.end() )
iter = map.erase( ... );
}
PhilT
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org