Skip to content

Commit ae0ecf6

Browse files
committed
Make vector print function in examples be more correct.
Fixes #6677. [SVN r77826]
1 parent 76a62c1 commit ae0ecf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/multiple_sources.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using namespace std;
1818
template<class T>
1919
ostream& operator<<(ostream& os, const vector<T>& v)
2020
{
21-
copy(v.begin(), v.end(), ostream_iterator<T>(cout, " "));
21+
copy(v.begin(), v.end(), ostream_iterator<T>(os, " "));
2222
return os;
2323
}
2424

example/options_description.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using namespace std;
1818
template<class T>
1919
ostream& operator<<(ostream& os, const vector<T>& v)
2020
{
21-
copy(v.begin(), v.end(), ostream_iterator<T>(cout, " "));
21+
copy(v.begin(), v.end(), ostream_iterator<T>(os, " "));
2222
return os;
2323
}
2424

0 commit comments

Comments
 (0)