
2 Feb
2009
2 Feb
'09
5:14 a.m.
On Mon, Feb 2, 2009 at 12:05 PM, KERSAM <kersam@web.de> wrote:
No, that's not working.... I still got the same error. Any other ideas?
I'm using Boost 1.35.0 and Visual Studio 2003 and Steve's suggestion worked fine. There was a remaining benign warning C4675 about argument dependent lookup. Here's the code that compiled: #include<boost/bind.hpp> #include<boost/signals.hpp> class MyBoostTest { public: void testFunction(int x, int y) {} }; void doConnect() { boost::signal2<void, int, int> signal; signal.connect(boost::bind<void>(&MyBoostTest::testFunction, new MyBoostTest, _1,_2)); } Regards, Pete