diff options
Fix typo
1 files changed, 3 insertions, 3 deletions
| -rw-r--r-- | Seminar05/LinkedList.hpp | 6 |
diff --git a/Seminar05/LinkedList.hpp b/Seminar05/LinkedList.hpp index 6242b13..1281a43 100644 --- a/Seminar05/LinkedList.hpp +++ b/Seminar05/LinkedList.hpp @@ -68,7 +68,7 @@ public: } ConstIterator operator++(int) { - Iterator temp = *this; + ConstIterator temp = *this; ++(*this); return temp; } @@ -112,11 +112,11 @@ public: return Iterator(nullptr); } - ConstIterator cbegin() { + ConstIterator cbegin() const { return ConstIterator(head); } - ConstIterator cend() { + ConstIterator cend() const { return ConstIterator(nullptr); } |
