-
Notifications
You must be signed in to change notification settings - Fork 586
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
Generalize automatic addition of adapter annotations #670
Comments
No, I meant the possibility of defining |
So you're talking about containers(). For that, we'd need to delay the instantiation until their first use.
|
I'm not sure how it would solve this specific issue, but instantiating them when needed seems a good improvement. No need to |
No one just never had a reason to do it like that. If you want to give it a try, feel free to experiment! |
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 infonew Info("std::shared_ptr<M>").pointerTypes("M")
. While this is not needed ifstd::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()
totype()
?The text was updated successfully, but these errors were encountered: