
14 Apr
2011
14 Apr
'11
4:44 a.m.
On Thu, Apr 14, 2011 at 1:27 AM, Littlefield, Tyler
funcPointer = boost::bind(&ChatClient::memberReceiver, this, _1);
Hey, I can finally be of some use, this is cool! that does not work. what boost::bind is returning in that case is a boost::function object, like this: boost::function
; I believe is how you had your message receiving function declared. In which case, you will need to declare another variable for that.
This seems to be common misconception. bind does _not_ return a boost::function object. It never did, it never will. Never. It returns some type that is callable, thus you can assign it to, construct a boost::function object with the right signature from it.
HTH, and happy hacking!