
9 Jan
2006
9 Jan
'06
12:43 a.m.
Hi, I'm looking for a general technique for binding signals with varying signatures together. Obviously i can create custom functions for any specific case, but i'm wondering if boost::bind could be used to help out here? i.e. boost::signal1<void, const char *> sig1; boost::signal0<void> sig2; void bing() { std::cout << "bing" << std::endl; } // connect sig1 to sig2 such that calling sig1 will invoke sig2 // ... <- how do i do this? // connect sig2 to some function sig2.connect(&bing); // call the signal sig1("some string"); Thanks in advance - Will