// -*- c++ -*- #include #include #include /* Copyright 1999, Karl Nelson This program shows how to bind an argument to a value using bind(). */ #ifdef SIGC_CXX_NAMESPACES using namespace std; using namespace SigC; #endif int k=0; void foo1(int i) {k+=i;cout<<"foo1 "<< i <> Sizes "<) = " << sizeof(Slot1)<) = " << sizeof(AdaptorBindSlot0_1) << endl; cout << "sizeof(AdaptorBindSlot0_1::Node) = " << sizeof(AdaptorBindSlot0_1::Node)<> Connecting Slots"< slot1=bind(slot(foo1),1); Slot0 slot2=bind(slot(foo2),2); Slot1 slot3=bind(slot(foo3),3); Slot1 slot4=bind(slot(foo4),4); cout << ">> Calling Slots"<