// Copyright 2001 Karl Einar Nelson #include #include #ifdef SIGC_CXX_NAMESPACES using namespace std; using namespace SigC; #endif int result=1; class Foo { int i; public: void foo() { cout << "hello "<> test 1 (assignment to members)" << endl; { Foo f; Slot1 s; cout << " call nothing connected" <> test 2 (assignment to members const)" << endl; { Foo f; Slot1 s; cout << " call nothing connected" <(method)); } SigC::ConstMethodSlotNode::ConstMethodSlotNode(FuncPtr proxy, void (Foo::*method)() const) : SlotNode(proxy) { init(reinterpret_cast(method)); } #endif