$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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