|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2005-02-08 13:38:42
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of frantz.maerten_at_[hidden]
> Sent: Tuesday, February 08, 2005 11:44 AM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] boost::signals block/unblock
>
> I wonder there's a way to connect a slot to signal (which gives a
> connection),
> temporarily disconnect this connection, and reconnect it later (like a
> block
> function)
>
> My problem is that I need to emit a signal to the connected slots
given a
> condition. If a connection satisfies the precondition, it will be
> notified,
> otherwise it is temporarily disconnected.
[Nat] Might it be simpler to test the condition in your custom combiner
class? Leave all the slots connected, but for a given invocation, skip
any that fail the condition.
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