Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::bind member function and save to function pointer
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-13 21:18:16


On 04/13/2011 04:27 PM, Littlefield, Tyler wrote:
> 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:

Well, technically, it returns an unspecified type
that can be converted to such a boost::function.

> 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.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at