Commit 1fc12e0e authored by schoetbi's avatar schoetbi Committed by Wouter van Oortmerssen

C++ fixed compile error C2678 with msvc when using std::find_if on vectors (#4262)

In Debug mode it is checked that iterator begin is less than end
therefore the operator< in class VectorIterator is needed
parent e6fa7b11
......@@ -296,6 +296,10 @@ public:
return data_ == other.data_;
}
bool operator<(const VectorIterator &other) const {
return data_ < other.data_;
}
bool operator!=(const VectorIterator &other) const {
return data_ != other.data_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment