Boost logo

Boost Users :

From: Vasco Lohrenscheit (valoh_at_[hidden])
Date: 2005-01-18 21:40:37


Hi,

is there a easy way/workaround to use methods of managed classes with
boost::bind?

boost::signal<void (int value)> testSignal;

public __gc class TestManagedClass
{
public:

         TestManagedClass() {testSignal.connect(boost:bind(???)); }
         void test(int i);
};

how can I connect the TestManagedClass::test method of a instance of a
TestManagedClass to the signal ?

It seem already not be allowed to get the adress of the method
&OpenGlTestGUI::testMethod (compile error c2843, vc++7.1). Are there any
work arounds? Has anybody alread used boost::bind and boost::signal with
managed classes?

    best regards,

        Vasco Lohrenscheit


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net