Boost logo

Boost Users :

From: me22 (me22.ca_at_[hidden])
Date: 2006-03-02 23:14:52


On 3/2/06, me22 <me22.ca_at_[hidden]> wrote:
> assert( src1.size() == src2.size() );
> result.resize( src1.size() );
> std::transform( src1.begin(), src1.end(),
> src2.begin(),
> std::add<int>() );
>

Sorry for the noise, that transform call should be the following instead:

std::transform( src1.begin(), src1.end(),
                src2.begin(),
                result.begin(),
                std::add<int>() );

~ Scott


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