|
Boost Users : |
From: Will (whenderson_at_[hidden])
Date: 2006-01-08 19:43:27
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
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