|
Boost Users : |
Subject: Re: [Boost-users] [Signals2] Wrapper function for connecting slot won't compile
From: Igor R (boost.lists_at_[hidden])
Date: 2009-07-06 19:15:14
> Â Â 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 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