
10 Nov
2006
10 Nov
'06
10:25 p.m.
Peter Dimov wrote:
std::transform( boost::counting_iterator<int>(0), boost::counting_iterator<int>(lsv.size()), ostream_iterator<string>(cout, " "), boost::bind( &LegacyStringVector::operator[], lsv, _1)
Make that boost::bind( &LegacyStringVector::operator[], &lsv, _1) or boost::bind( &LegacyStringVector::operator[], boost::cref(lsv), _1) to not copy the whole lsv.
);