small fix to List.h, the post-increment iterators should return "const" objects to disallow constructs such as i++++
diff --git a/include/utils/List.h b/include/utils/List.h
index 1a6be9a..1b01c41 100644
--- a/include/utils/List.h
+++ b/include/utils/List.h
@@ -84,7 +84,7 @@
mpNode = mpNode->getNext();
return *this;
}
- _Iter operator++(int) { // post-increment
+ const _Iter operator++(int) { // post-increment
_Iter tmp = *this;
++*this;
return tmp;
@@ -93,7 +93,7 @@
mpNode = mpNode->getPrev();
return *this;
}
- _Iter operator--(int) { // post-increment
+ const _Iter operator--(int) { // post-increment
_Iter tmp = *this;
--*this;
return tmp;