Hi Ulrich,
You're right that what you (and Robert) note is an error (i.e. assigning
an iterator from one container to an iterator from another container).
But...
I don't believe this is the problem. The 'it = container.erase(it)'
construct is correct.
It seems that according to the standard, it is, but some (many?)
versions of gcc don't support it (perhaps it was added late in the
standardization process or whatever). I've run across the same problem
as Wang Rui - map::erase(iterator) returns void on some common
compilers. So it's not portable code (by gcc's fault but still...).
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org