|
Boost Users : |
Subject: Re: [Boost-users] boost::bind
From: Igor R (boost.lists_at_[hidden])
Date: 2011-04-27 16:41:54
> 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 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