Fixed segfault -- something about trying to use the iter2 iterator while you were erasing elements from its container was not acceptable. Using the suffix decrement operator means the erasure will happen at the corrent element but will reset the position of the iterator to the element preceeding it(which will then be incremented in the for loop guard)