Boost logo

Boost :

From: Guido Ziliotti (guido.ziliotti_at_[hidden])
Date: 2008-07-10 05:37:25


// 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;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk