Boost logo

Boost Users :

Subject: Re: [Boost-users] warnings with boost::bind
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-31 10:13:52


> 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);


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