-
Notifications
You must be signed in to change notification settings - Fork 588
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
containers: vectors of pairs not properly generated #673
Comments
That's intentional... What's the issue? |
Sorry. I expected a vector interface for a vector of pairs. I didn't see the index argument of But there is a little issue: how to map a c++ function returning a In Pytorch, this is the case of In the current version of the presets, you seem to use some workaround where the iterator, and the item are mapped to the same class. |
It's not exactly a workaround, JavaCPP just isn't able to resolve the correspondence, but if you follow the typedefs and what not, that's what the type of the iterator ends up being. |
But with additional functions used for iterating that we cannot map (increment and comparison operators). |
We could add those functions too if that's what you're looking for.
|
I think it would be a good thing. |
And maybe also add a mapping for |
Parser generates code for pairs and not for vectors for vectors of pairs.
Example for
std::vector<std::pair<int, X>>
:This is due to these lines.
firstType
andsecondType
being tested here for generating the code of pairs.What about adding condition
dim == 0
line 221 ?Or maybe removing condition
indexType != null
line 355 ?The text was updated successfully, but these errors were encountered: