diff options
Diffstat (limited to 'backend/ListIterator.hpp')
-rw-r--r-- | backend/ListIterator.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ListIterator.hpp b/backend/ListIterator.hpp index 5e4ea91..b6b7a36 100644 --- a/backend/ListIterator.hpp +++ b/backend/ListIterator.hpp @@ -3,7 +3,7 @@ #include "ListIterator.h" template <typename T> -ListRange<T>::ListRange(List<T> & list) : list(list) { } +ListRange<T>::ListRange(const List<T> & list) : list(list) { } template <typename T> ListIterator<T> ListRange<T>::begin() const { @@ -21,7 +21,7 @@ size_t ListRange<T>::size() const { } template <typename T> -ListIterator<T>::ListIterator(List<T> & list, size_t index) : list(list), index(index) { } +ListIterator<T>::ListIterator(const List<T> & list, size_t index) : list(list), index(index) { } template <typename T> T ListIterator<T>::operator * () const { |