#include #include #include /* Copyright 1999-2001, Karl Nelson Copyright 2002, Andreas Rottmann This program shows how to alter the argument list of a slot to match a signal using convert(). */ #ifdef SIGC_CXX_NAMESPACES using namespace std; using namespace SigC; using namespace SigCX; #endif int fail=1; int my_string_to_char(Slot1 &d,const string &s) { return d(s.c_str()); } int foobar(const char* f) { if (strcmp(f,"hello")==0) fail=0; cout << f< s=convert(slot(foobar),my_string_to_char); s("hello"); return fail; }