Boost logo

Boost Users :

From: Simon Pickles (sipickles_at_[hidden])
Date: 2008-07-13 06:53:22


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 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