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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users