|
Boost Users : |
Subject: Re: [Boost-users] Boost::bind member function and save to function pointer
From: Littlefield, Tyler (tyler_at_[hidden])
Date: 2011-04-13 19:27:44
Hey, I can finally be of some use, this is cool!
> funcPointer = boost::bind(&ChatClient::memberReceiver, this, _1);
that does not work. what boost::bind is returning in that case is a
boost::function object, like this:
boost::function<void (std::string)>; I believe is how you had your
message receiving function declared. In which case, you will need to
declare another variable for that.
HTH, and happy hacking!
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