Boost logo

Boost Users :

Subject: [Boost-users] boost::bind
From: simone pilozzi (simonepilozzi_at_[hidden])
Date: 2011-04-27 12:25:22


 Dear Users,

I am using bind to calculate the transform of an initial vector in its
element by element power (to a given exponent).
I used this syntax

std::transform(values.begin(), values.end(),
values.begin(),boost::bind(pow,_1,exponent));

but the compiler complains for with error C2780 : expects 2 arguments 3
provided...

Do you have any solution/explanation?

Thanks in adavnce!



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