-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Hey Sergey,
yet another suggestion - hope I'm not spamming you too much here. Just trying to get Binder to work nicely for my large code base.
Is there an elegant way to instantiate class and function templates that are not specifically requested anywhere in my code base? My code, being a library, does not actually use instances of all template classes and functions that I'd like to have bindings for.
My current workaround is to have a header that lists those instances, and include that header in the all_includes files. As far as I am aware, that is the recommended way? That header then however becomes a mixture of including my actual library headers, and some custom additions, which makes it harder to, e.g., autogenerate it, adding maintenance burden.
Would it instead be possible to add a config option for that, such as
+template my_function_template int
which would generate a binding for my_function_template<int>, or something like that?
Ideally, for classes, this would also support the renaming issue that I just opened as well.
Thanks and so long
Lucas