30 Aug
2002
30 Aug
'02
2:23 p.m.
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