Explorar o código

Fix invalid reference return in IndexedListIterator

Nils Maier %!s(int64=12) %!d(string=hai) anos
pai
achega
e25c0955c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/IndexedList.h

+ 1 - 1
src/IndexedList.h

@@ -103,7 +103,7 @@ struct IndexedListIterator {
     return *this;
   }
 
-  SelfType& operator--(int)
+  SelfType operator--(int)
   {
     SelfType copy = *this;
     --*this;