Stl::reverse iterator

I was coding a little program a while back when I found a Quirk about the stl reverse_iterator. Use of the iterator is quite easy until you have to delete from one. I tried the normal way of: vector<sometype>::reverse_iterator myiterator… .. .. myvector.erase(myiterator). only to find the code didn’t compile. A little baffled I started [..more..]