Hi Robert, On Tue, Feb 7, 2012 at 4:34 AM, Robert Osfield <[email protected]>wrote:
> Before I > merge any of these changes we'll need to nail down that what you > attempting is a 100% robust on all compilers. If there is any doubt > then copying the iterator explictly, then incrementing the iterator > would be the thing to do. > I've only tested this on the Visual Studio compiler, but as Juan already mentioned, this behavior should follow the standard. Many examples I've seen online use the same technique to erase elements from stl containers while iterating over them. If it helps ease your concern, here is a stackoverflow question that seems to confirm this: http://stackoverflow.com/questions/263945/what-happens-if-you-call-erase-on-a-map-element-while-iterating-from-begin-to Cheers, Farshid
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
