|
Boost Users : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-08-30 09:23:39
On Friday 30 August 2002 09:56 am, Jeff Faust wrote:
> I can get this to work with std::bind1st, but not with boost::bind. Why?
>
> // compiles
> std::bind1st(std::multiplies<int>(), 10);
>
> // does not
> boost::bind(std::multiplies<int>(), _1, 10);
>
> I'm using VC++ 6.0.
>
> Jeff
You need to give bind the return type when using a function object on VC++
6.0, e.g.,
boost::bind<int>(std::multiplies<int>(), _1, 10);
Doug
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