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

[feature request] allow callback functions to have user data passed in. #5

Open
ConnorRigby opened this issue Jul 6, 2018 · 1 comment

Comments

@ConnorRigby
Copy link

I have a framework that doesn't allow for global variables, so it would be really nice to have callbacks' first argument be void* arg along with whatever data that gets passed in.

@ConnorRigby
Copy link
Author

I suppose on the other hand one could pass in somthing like this:

std::function<void()> func([](){/*something clever*/});

Feel free to close if you don't want to support this.

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

1 participant