Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2008-07-10 05:40:05


Author: vladimir_prus
Date: 2008-07-10 05:40:04 EDT (Thu, 10 Jul 2008)
New Revision: 47285
URL: http://svn.boost.org/trac/boost/changeset/47285

Log:
Don't hardcode cout.

Suggested by Guido Ziliotti.

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

Modified: branches/release/libs/program_options/example/options_description.cpp
==============================================================================
--- branches/release/libs/program_options/example/options_description.cpp (original)
+++ branches/release/libs/program_options/example/options_description.cpp 2008-07-10 05:40:04 EDT (Thu, 10 Jul 2008)
@@ -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