Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Seminar05/LinkedList.hpp6
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);
}