Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiler Error With boost::bind and boost::signals
From: KERSAM (kersam_at_[hidden])
Date: 2009-02-02 07:05:25


No, that's not working....
I still got the same error.
Any other ideas?

Steven Watanabe-4 wrote:
>
> AMDG
>
> KERSAM wrote:
>>> class MyBoostTest {
>>> public:
>>> void testFunction(int x, int y) {}
>>> };
>>>
>>> signal.connect(boost::bind<void>(&MyBoostTest::testFunction, new
>>> MyBoostTest, _1));
>>>
>>>
>>> What am I doing wrong?
>>>
>
> testFunction needs three arguments, the class instance, x, and y.
> add _2 to the parameters for boost::bind.
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
View this message in context: http://www.nabble.com/Compiler-Error-With-boost%3A%3Abind-and-boost%3A%3Asignals-tp21749564p21788514.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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