Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77826 - trunk/libs/program_options/example
From: ghost_at_[hidden]
Date: 2012-04-08 04:17:55


Author: vladimir_prus
Date: 2012-04-08 04:17:53 EDT (Sun, 08 Apr 2012)
New Revision: 77826
URL: http://svn.boost.org/trac/boost/changeset/77826

Log:
Make vector print function in examples be more correct.
Fixes #6677.

Text files modified:
   trunk/libs/program_options/example/multiple_sources.cpp | 2 +-
   trunk/libs/program_options/example/options_description.cpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/program_options/example/multiple_sources.cpp
==============================================================================
--- trunk/libs/program_options/example/multiple_sources.cpp (original)
+++ trunk/libs/program_options/example/multiple_sources.cpp 2012-04-08 04:17:53 EDT (Sun, 08 Apr 2012)
@@ -18,7 +18,7 @@
 template<class T>
 ostream& operator<<(ostream& os, const vector<T>& v)
 {
- copy(v.begin(), v.end(), ostream_iterator<T>(cout, " "));
+ copy(v.begin(), v.end(), ostream_iterator<T>(os, " "));
     return os;
 }
 

Modified: trunk/libs/program_options/example/options_description.cpp
==============================================================================
--- trunk/libs/program_options/example/options_description.cpp (original)
+++ trunk/libs/program_options/example/options_description.cpp 2012-04-08 04:17:53 EDT (Sun, 08 Apr 2012)
@@ -18,7 +18,7 @@
 template<class T>
 ostream& operator<<(ostream& os, const vector<T>& v)
 {
- copy(v.begin(), v.end(), ostream_iterator<T>(cout, " "));
+ copy(v.begin(), v.end(), ostream_iterator<T>(os, " "));
     return os;
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk