diff options
Autocommit at 07.05.2022 @ 19:44
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | src/Generic/List/List.hpp | 4 |
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; } |
