Hello,
I have a function that looks like following:
void printCallbackAddress(boost::function<void()> myCallback)
{
printf("%x",myCallback);
}
The funny thing is that it will print a different address depending where I call above function. However I always call above function with the same callback argument, i.e. the same callback function. I guess this is linked to how the boost::function is working. But how can I uniquely identify a callback passed as argument? Because I need this so that a server can "remember" which callback was registered on a client.
Thanks for any input