I'm using a library written in C. This library accepts callbacks like this:
int(*)(int arg, void* user_param)
Is it possible to create a std::function<int(int, void*)> and pass it to this library as a callback?
I know that std::function has a target method which returns the address of the stored function, but as far as I know it can't return the address if its holding a lambda expression. Or am I wrong?