diff --git a/src/libs/3rdparty/cplusplus/AST.h b/src/libs/3rdparty/cplusplus/AST.h index 3f48e192b93..085fff92bdb 100644 --- a/src/libs/3rdparty/cplusplus/AST.h +++ b/src/libs/3rdparty/cplusplus/AST.h @@ -99,8 +99,8 @@ public: iter = iter->next; return *this; } - bool operator==(const ListIterator &other) { return iter == other.iter; } - bool operator!=(const ListIterator &other) { return iter != other.iter; } + bool operator==(const ListIterator &other) const { return iter == other.iter; } + bool operator!=(const ListIterator &other) const { return iter != other.iter; } }; ListIterator begin() { return {this}; } ListIterator end() { return {nullptr}; }