Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::bind
From: simone pilozzi (simonepilozzi_at_[hidden])
Date: 2011-04-28 08:59:36


Thanks,

But why the compiler says talks about three arguments provided..there are
only two....(base and exponent)

On 27 April 2011 22:41, Igor R <boost.lists_at_[hidden]> wrote:

> > 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...
>
> pow() has a lot of overloads, you have to explicitly cast pow to the
> required function type.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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