aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2024-06-11 08:34:33 +0200
committerChristian Stenger <[email protected]>2024-07-02 05:33:00 +0000
commit6cb0c69c436e5bd9a831297f838b3777dde24b84 (patch)
treee2ecb725ddf85e471186760dcf7ac6d549af1169
parentd635151c0b7463851022f34daa02cde6ab9d0533 (diff)
CplusPlus: Silence clang warning
Silences a warning regarding ISO C++20 considering the overloaded operators as ambiguous. Change-Id: Ie27a8567899a91ab064a58694105af260addb74b Reviewed-by: hjk <[email protected]>
-rw-r--r--src/libs/3rdparty/cplusplus/AST.h4
1 files changed, 2 insertions, 2 deletions
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}; }