From e51e5e5fdb8fed6969aa6f608663fac9c4ac8bba Mon Sep 17 00:00:00 2001 From: Stoycho Kyosev Date: Sat, 12 Nov 2022 18:35:12 +0200 Subject: Fix typo --- Seminar05/LinkedList.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- cgit v1.3.1-23-gd82d