-
Luca Boccassi authored
Solution: when iterating over a map and conditionally deleting elements, an erased iterator gets invalidated. Call erase using postfix increment on iterator to avoid using an invalid element in the next iteration.
a9aeb492
Solution: when iterating over a map and conditionally deleting elements, an erased iterator gets invalidated. Call erase using postfix increment on iterator to avoid using an invalid element in the next iteration.