Pattern: Dangerous iterator comparison
Issue: -
Iterator compared with operator <
. This is dangerous since the order of items in the container is not guaranteed. One should use !=
instead to compare iterators.
Pattern: Dangerous iterator comparison
Issue: -
Iterator compared with operator <
. This is dangerous since the order of items in the container is not guaranteed. One should use !=
instead to compare iterators.