Re: [sigc] Deprecate signal<>::slots() ?

Den 2016-04-24 kl. 15:20, skrev Murray Cumming:
On So, 2016-04-24 at 13:21 +0200, Kjell Ahlstedt wrote:

 There are signal_base::block()/unblock() methods, but they don't do
what James Lin wants them to do. They iterate over all connected
slots and set or unset the slots' blocking state.
Isn't that exactly what he wants?

I don't think so. See
There's no 'blocked' flag in the signal itself. signal_base::block() won't block slots that are connected after the call to signal_base::block(). signal_base::unblock() unblocks all slots, including those that were blocked when signal_base::block() was called.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]