#include #include using namespace std; class tc // testclass { public: tc() { this->data = "I'm a test class."; } ~tc() {} boost::signal s; void theSlot(void) { cout << this->data << endl; } private: string data; }; int main() { tc t; t.s.connect (&tc::theSlot); t.s(); }