Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/Generic/List/List.hpp4
diff --git a/src/Generic/List/List.hpp b/src/Generic/List/List.hpp
index b4c3b73..7e57b55 100644
--- a/src/Generic/List/List.hpp
+++ b/src/Generic/List/List.hpp
@@ -247,8 +247,8 @@ std::istream& operator>>(std::istream& istr, List<T>& obj) {
template <typename T>
std::ostream& operator<<(std::ostream& ostr, const List<T>& obj) {
ostr << obj.get_count() << " ";
- for (int i = 0; i < obj.count; i++)
- ostr << obj.elements[i];
+ for (int i = 0; i < obj.get_count(); i++)
+ ostr << obj[i];
return ostr;
}