mercredi 4 novembre 2015

Working with std::function on C libraries

I have a C library function with the following signature,

void register_callback(void (*callback)(int, void*), void* args);

What is the best way to get this to work with, if I have a callback of the form,

std::function<void(int)>?

Aucun commentaire:

Enregistrer un commentaire