« Return to Thread: [Signals2] Wrapper function for connecting slot won't compile

Re: [Signals2] Wrapper function for connecting slot won't compile

by Igor R :: Rate this Message:

Reply to Author | View in Thread

>    SomeClass myClass;
>    setOpenCallBack(boost::bind(&SomeClass<B>::memFunc, &myClass)); //does
> not compile

Your memFun() has 1 argument, and you have express this in the bind:

setOpenCallBack(boost::bind(&SomeClass<B>::memFunc, &myClass, _1));
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [Signals2] Wrapper function for connecting slot won't compile