Boost logo

Boost Users :

Subject: Re: [Boost-users] compiling error from code using boost::bind code in Vs2010
From: Daniel James (dnljms_at_[hidden])
Date: 2013-02-19 16:42:26


On 20 February 2013 00:27, Miguel Carvajal
<macarvajal_at_[hidden]> wrote:
> class B
> {
>
> A a;
> public;
>
> VectorClass f(VectorClass,double);
>
> void test()
> {
> a.evaluate(bind(f,this,_1,_2));
> }
> };

I think you need to use '&B::f' rather than 'f' to get a member
function pointer to 'f'.


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