// -*- c++ -*- #include #include #include #include /* Copyright 1999, Karl Nelson This program shows how to alter the return type of a slot to match a signal using retbind(). */ #ifdef SIGC_CXX_NAMESPACES using namespace std; using namespace SigC; #endif int foo1(int i) { return i; } int main(int argc,char **argv) { cout << ">> Sizes "<) = " << sizeof(Slot1)<) = " << sizeof(SlotData)<> Connecting Slots"< slot1=retbind(slot(foo1), string("Hello")); Slot1 slot2=retbind(slot(foo1), 9.5); cout << ">> Calling Slots"<