Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic
diff options
context:
space:
mode:
Commitbbe30a918252371b6af110ce968eddc7b73c8623 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 19:44:11 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-07 19:44:11 +0300
Files19e57a780c2728f7f836f52c3cc6df45f34a1215 /src/Generic
FMI-OOP-P1_TicketSystem-bbe30a918252371b6af110ce968eddc7b73c8623.tar
FMI-OOP-P1_TicketSystem-bbe30a918252371b6af110ce968eddc7b73c8623.tar.gz
FMI-OOP-P1_TicketSystem-bbe30a918252371b6af110ce968eddc7b73c8623.zip
Parentf4f97bd1c9a40428695c3ac0a387bb50b6dce1c4 (diff)
Autocommit at 07.05.2022 @ 19:44
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;
}