From bbe30a918252371b6af110ce968eddc7b73c8623 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 19:44:11 +0300 Subject: Autocommit at 07.05.2022 @ 19:44 --- src/Generic/List/List.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Generic') 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& obj) { template std::ostream& operator<<(std::ostream& ostr, const List& 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; } -- cgit v1.3.1-26-gb76a