bytedeco/javacpp

Generalize automatic addition of adapter annotations

Open

#670 aperta il 8 apr 2023

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Java (620 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4279 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It would be nice to generalize this logic for, eg, containers or arrays. Currently, if we must map a std::vector<std::shared_ptr<M>>, we need to add an info new Info("std::shared_ptr<M>").pointerTypes("M"). While this is not needed if std::shared_ptr<M> is the type of a function argument or a return type. But adding such manual info also cancel the automatic additions of @Cast and possibly others performed by the parser.

Could this logic be moved from declarator() to type() ?

Guida contributor