From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-10 17:25:19


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.

> );