Boost::bind return a function object which is the argument for a function that requires pointer?

Traditionally the final void argument passed to callbacks is user defined data. If this is the case for you you can create a helper function that will let you pass functors. The only trouble is that you need to ensure that the user data exists until the callback will no longer be called - and that will depend a lot on your program structure.

I'm just going to leak the object as thats the easiest way to ensure it continues to exist. ( Though you'll also have problems with the existance of the containing myC object ).

There are no ways to convert boost::bind result to function pointer.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions