bool FaceIterator::operator ==(const FaceIterator &other) const { if(isAtEnd() && other.isAtEnd()) return true; if(isAtEnd() || other.isAtEnd()) return false; return (*static_cast<const Inherited *>(this) == other ) && _actPrimIndex == other._actPrimIndex; }