$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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://listarchives.boost.org/mailman/listinfo.cgi/boost-users
>