Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-06-07 21:55:04


On Jun 7, 2007, at 6:24 AM, Boris wrote:

> On Thu, 07 Jun 2007 09:31:29 +0900, Douglas Gregor
> <doug.gregor_at_[hidden]>
> wrote:
>
>>
>> On Jun 6, 2007, at 6:10 AM, Boris wrote:
>>
>>> Is it allowed to call connect() with the same argument (slot) a
>>> second
>>> time (without disconnecting in between)? I've been checking the
>>> documentation at
>>> http://www.boost.org/doc/html/boost/signalN.html#id1033842-bb but
>>> couldn't
>>> find any answer. I assume it is allowed (it doesn't throw any
>>> exception et
>>> al.) but don't want to build a software based on assumptions
>>> really. ;-)
>>
>> Yes, you can call connect() with the same argument twice. You will
>> get two separate slots that call the same function.
>
> Assuming that sig.disconnect(&callback_function) works - it will
> remove
> then both slots?

Yes.

        - Doug


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