I use boost::signal with different function signatures and different combiners.
In a class that looks like the one beyond I want to get the return of a certain signal declaration.
template<typename signal_type> class MyClass
{
signal_type mSignal;
signal_type::result_type getResult() { return mSignal(); }
}
But signal_type:...
I have a class with signal member encapsulated with boost::function.
Is it possible to add another signal as a handler with this API?
class Foo
{
public:
VOID AddHandler(boost::function<VOID()> handler)
{
m_signal.connect(handler);
}
private:
boost::signal<VOID()> m_signal;
};
boost::signal<VOID()> signal;
VOID SignalC...
boost signals allows temporarily blocking a connection via a connection member function. However, I have a single signal with many connections. The connections are stored and maintained by their respective listeners. Now the broadcaster decides that it wants to stop sending signals for a while. There does not seem to be a way to iterate ...
I'm trying to wrap triggering for a boost::signal into a boost::bind object. So what I want is to invoke the signal with some pre-packaged arguments when the boost::function is called.
What I have is this:
boost::signals2::signal<void(int)> sig;
boost::function<void()> f = boost::bind(
&(sig.operator()), &sig, 10);
But this doesn...