diff --git a/src/include/containers/IntrusiveSortedList.hpp b/src/include/containers/IntrusiveSortedList.hpp index 1997812a50..374478000c 100644 --- a/src/include/containers/IntrusiveSortedList.hpp +++ b/src/include/containers/IntrusiveSortedList.hpp @@ -133,12 +133,12 @@ public: operator T() const { return node; } operator T &() { return node; } - T operator* () const { return node; } + const T &operator* () const { return node; } Iterator &operator++ () { if (node) { node = node->getSortedSibling(); - }; + } return *this; }