Closed vishwa2710 closed 4 months ago
Hello,
This should be fixed in this commit: https://github.com/pthom/litgen/commit/226992d4e30be298963fa96e52254e2e45af6477
Please do keep me informed about the result.
Also, I'm always curious to know in what ways people are using this project. Can you give me some more information about what you are doing with it?
Thanks!
Amazing, thank you for the lightening fast response, that indeed did the trick! I am one of the developers of the Open Space Collective, which is a set of open source repositories for various space applications. We use pybind11 to create python bindings for our repos, and I have always been on the lookout for something that would allow us to automate binding generation.
As a separate effort I have also been trying to use pybind11-stubgen to generate stubs for our packages, and litgen looked like it might solve both!
I'm going to try and play with it some more and see how well it works. I will definitely reach out with some questions. Thanks so much!
I am one of the developers of the Open Space Collective, which is a set of open source repositories for various space applications. We use pybind11 to create python bindings for our repos, and I have always been on the lookout for something that would allow us to automate binding generation.
Interesting! If you get to something that does work, please keep me informed.
Hello! The following code snippet:
generates the following pybind11 bindings:
This does not compile however as the
operator==
methods are ofconst
type.and therefore the
overload_cast
must also include theconst_
field:I have very briefly looked at the litgen and might be missing something. Happy to hear your thoughts!
Thanks!