Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::bind
From: Roland Bock (rbock_at_[hidden])
Date: 2009-02-06 11:14:39


Hi,

I admit, I deliberately waited, hoping for someone to give a different
answer, but I am afraid there is no way to use bind here.

boost::bind creates a functor, not a function.

I have similar situation when using expat. I use another function as
delegator. Not nice, but it works. See

http://lists.boost.org/boost-users/2009/02/44615.php

Regards,

Roland

Hansi wrote:
> Max schrieb:
>
>>> in some external header file I have the declaration
>>>
>>> typedef void (* FUNCTION)(int ,void *);
>>
>> try with
>> typedef boost::function<void (int ,void *)> FUNCTION;
>>
>>> void SetCallback(FUNCTION cb);
>
> I can't change this definition because it is in an header of an external
> library...Is there another way?
>
> Regards
> Hansjörg
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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