Invalidate iterator if modifying this #355

wants to merge 1 commit into
Commits on Nov 30, 2012
  1. We can't iterate over the object we are modifying

    glance- committed Nov 30, 2012
    If subtract is called on itself, prefix and this is the same and the
    iterator is invalid after modifying the underlaying object.
    Instead just clear everyting.