diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 9fc2236b3..664be4ca4 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -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_; }