Boost logo

Boost Users :

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.

> );


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net