// Copyright 1999 Karl Nelson. #include #include #include #ifdef SIGC_CXX_NAMESPACES using namespace SigC; #endif void print(const string &str) {cout << str;} main() { Signal1 printer; printer.connect(slot(print)); printer("hello world\n"); }