Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::signals2 connection management
From: Igor R (boost.lists_at_[hidden])
Date: 2011-01-06 13:52:44


> If I have one only signal that can be connected at different times to
> several different slots, then I create several boost::signals2::connection,
> one for each slot but for that same only signal, if I disconnect one of the
> connections, will all connections be disconnected or just that particular
> slot?

Actually, you don't "create" boost::signals2::connection instance, but
receive it from yourSignal.connect(youSlot) method, don't you? When
you disconnect() this connection object, you detach only "yourSlot",
while other slots connected to the same signal keep receiving
notifications.


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