should be iterator = m_targets.erase(iterator)