Boost logo

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?


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

// call the signal
sig1("some string");

Thanks in advance
 - Will

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at