Boost logo

Boost Users :

From: Cory Nelson (phrosty_at_[hidden])
Date: 2005-01-19 12:41:48


Is there a reason you can't use events/delegates? They should be
faster than boost::signal and boost::function

On Wed, 19 Jan 2005 03:40:37 +0100, Vasco Lohrenscheit
<valoh_at_[hidden]> wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Cory Nelson
http://www.int64.org

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