-
Notifications
You must be signed in to change notification settings - Fork 4
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
Using Rust type implementing custom traits in C++ #4
Comments
You should add an type crate::Dog{
#layout(size = 24, align = 8);
fn make_sound(&self) use crate::Animal;
} See the rayon example for more usage examples. |
Thanks, but it seems like there still exist problems after this change:
|
I can't reproduce the error. Here is my exact diff:
Which works for me when I run |
I was trying to expose the following types to C++ types. I directly added them in
/examples/tutorial
:The
.zng
configs are shown below:However, I'm getting the following errors:
I'm wondering why this is happening. Did I use the
.zng
file wrongly, or is this feature currently not yet supported?The text was updated successfully, but these errors were encountered: