Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent attempt to removing an item from itself.
The code calls `visitable::visit_items` and adds all items to be removed as reported by the lambda to the vector and later calls `visitable::remove_item` for all those listed items. But `visit_items` will visit `this` as well. So the vector ends up containing `this`, which is subsequently given to `remove_item`, which complains (correctly) that `this` is not contains in `this`.
- Loading branch information