Explorar o código

AK: InlineLinkedListIterator operator-> should return m_node directly

Little typo here. Don't think many people use this iterator :)
Andrew Kaster %!s(int64=5) %!d(string=hai) anos
pai
achega
aa0ee0e407
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AK/InlineLinkedList.h

+ 1 - 1
AK/InlineLinkedList.h

@@ -19,7 +19,7 @@ public:
         return *this;
     }
     T& operator*() { return *m_node; }
-    T* operator->() { return &m_node; }
+    T* operator->() { return m_node; }
     bool is_end() const { return !m_node; }
     static InlineLinkedListIterator universal_end() { return InlineLinkedListIterator(nullptr); }