Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use member function as a callback. #28

Open
lounick opened this issue Nov 3, 2016 · 3 comments
Open

Use member function as a callback. #28

lounick opened this issue Nov 3, 2016 · 3 comments

Comments

@lounick
Copy link

lounick commented Nov 3, 2016

Hi,

I'm trying to write a wrapper around your SDK. Unfortunately set_sdk_event_handler only accepts a function pointer making it unusable with any member function of a class.

Could you possibly overload the function to accept class member functions? As an example you can see here.

Thanks!

@tangketan
Copy link
Contributor

Thanks for your suggestion. Will add this type of callback soon.

@lounick
Copy link
Author

lounick commented Nov 8, 2016

Great! Thanks! 😄

@loiopol
Copy link

loiopol commented Nov 21, 2017

Hi @tangketan,
can you give me an update about this Issue please?
You have added the overloaded function nowaday?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants