a little imperfection in options_description.cpp example (program options)
// A helper function to simplify the main part. template<class T> ostream& operator<<(ostream& os, const vector<T>& v) { copy(v.begin(), v.end(), ostream_iterator<T>(cout, " ")); /* this is line 21 */ return os; } SHOULD BE REPLACED WITH // A helper function to simplify the main part. template<class T> ostream& operator<<(ostream& os, const vector<T>& v) { copy(v.begin(), v.end(), ostream_iterator<T>(os, " ")); /* this is line 21: "os" replaces "cout" */ return os; }
Guido Ziliotti wrote:
// A helper function to simplify the main part. template<class T> ostream& operator<<(ostream& os, const vector<T>& v) { copy(v.begin(), v.end(), ostream_iterator<T>(cout, " ")); /* this is line 21 */ return os; }
SHOULD BE REPLACED WITH
// A helper function to simplify the main part. template<class T> ostream& operator<<(ostream& os, const vector<T>& v) { copy(v.begin(), v.end(), ostream_iterator<T>(os, " ")); /* this is line 21: "os" replaces "cout" */ return os; }
Fixed in: http://svn.boost.org/trac/boost/changeset/47285 Thanks, Volodya
participants (2)
-
Guido Ziliotti
-
Vladimir Prus