-
Notifications
You must be signed in to change notification settings - Fork 66
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
Wrapping std::function<void()> #270
Comments
I have a similar question: Is it possible to wrap a function that on the C++ side expects an argument of type |
There is no direct conversion from Julia functions to std::function. You can use Leaving this open since it may actually be possible to automatically do the conversion from |
Thanks a lot for the quick feedback @barche. I also found this section in the docs, which also sheds some light on it. This should allow me to achieve what I need to do - and with acceptable coding overhead. Great work with CxxWrap.jl, as usual 👍 |
Just a heads-up, I am trying to wrap a function that takes an std::function<void()> as an argument, and I get the following error. Seems like it has not been wrapped yet.
The text was updated successfully, but these errors were encountered: