
13 Jul
2008
13 Jul
'08
11:21 a.m.
if (!sig.empty()) doSomething(); But if you just want to "fire" your signal, you don't have to test its emptiness. 2008/7/13, Simon Pickles <sipickles@googlemail.com>:
Hi,
What is the correct syntax to test whether a signal has any slots connected?
boost::signal<void(void)> sig;
if (sig) DoSomething();
This doesn't compile.
Thanks
Simon _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users