Boost logo

Boost Users :

Subject: Re: [Boost-users] [Signals2] How to connect member functions with more than one argument?
From: Marco Guazzone (marco.guazzone_at_[hidden])
Date: 2010-01-07 05:15:32


On Thu, Jan 7, 2010 at 10:08 AM, Igor R <boost.lists_at_[hidden]> wrote:
>>    void consume()
>>    {
>>        sig.connect(boost::bind(&self_type::process, this, _1));
>>
>>        sig(2,0.5);
>>    }
>
>
> sig.connect(boost::bind(&self_type::process, this, _1, _2));

It works!!

Thank you very much!!

Best,

-- Marco


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