Boost logo

Boost Users :

Subject: Re: [Boost-users] warnings with boost::bind
From: Hansi (hansipet_at_[hidden])
Date: 2009-03-31 12:42:43


Igor R schrieb:
>> and what is the right way?
>>
>> boost::function<bool (const A&)> func=boost::bind<bool>(&A::SetData,&a,_1);
>>
>> and after that
>>
>> func(b);
>
>
> boost::function<bool (const B&)> func= boost::bind(&A::SetData, &a, _1);
> B b;
> func(b);
thanks


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