ace project writes: > > > vector_of_elements.erase(&vector_of_elements[index]); > > > > I think your are making the too rapid assumption that > > an iterator is a pointer to an element. > > > Thats the one I ment Fred (my mistake). It works for > me (while I don't know whether is *really* correct).
FWIW - I think the intended method of the 'standard' writers is vector.erase( vector.at( index ) ); but not all C++ implementations have the 'conforming' at() method. AFA IK - at() is in Microsoft V6 and V7 and g++3.X Note a conforming vector<T>. at(index) method performs a range check on 'index' Cheers Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
