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

Fix getting labels from C++ #15

Open
Islandman93 opened this issue Mar 27, 2021 · 0 comments
Open

Fix getting labels from C++ #15

Islandman93 opened this issue Mar 27, 2021 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Islandman93
Copy link
Collaborator

Currently there's no way to get the labels from C++ to Julia & I have been unable to get something like this to work:

.method("labels", [](GameState &gs) { 
     return jlcxx::ArrayRef<Label, 1>(labels.data(), labels.size()); 
});

I've tried Label*, & other variations. As far as I can tell from https://discourse.julialang.org/t/passing-an-array-of-a-c-class-to-julia-cxxwrap/17622 this doesn't seem possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant