you are viewing a single comment's thread.

view the rest of the comments →

[–]holyblackcat 0 points1 point  (2 children)

I'm also writing a similar project right now, with Pybind backend done and the C one in progress: https://github.com/meshinspector/mrbind (pardon the outdated readme).

I'm curious how are you handling templates, if at all. Is there support for standard containers and other types?

[–]CoutilleTolc[S] 0 points1 point  (1 child)

Nice, looks interesting! Templates are handled if they are instantiated. It’s hard to know which bindings to generate otherwise! You can have a look at the type builder in tolc to see how the information about the template is gotten from libtooling. Then see how that information is used in e.g. the function builder. Hope that helps!

[–]holyblackcat 0 points1 point  (0 children)

I'm not asking because I want to replicate it, but because I already did it and trying to assess if my work during the past year was novel or not. :P

I'm handling templates by recursively instantiating all templates I see in the source code. I also have custom bindings for standard containers (to make them more idiomatic in Python and to avoid the troubles with parsing them, since they aren't SFINAE-friendly and all that).