Replies: 1 comment
-
This would require some kind of reflection, which is not part of C++17. Litgen can generate this kind of code by parsing header: https://pthom.github.io/litgen/litgen_book/00_00_intro.html LLMs (Claude, ChatGPT) are also excellent at generating binding code these days, just copy-paste your header file and say "make nanobind bindings". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have this type in C++:
My current understanding is that to properly support this, I need to do:
Is that correct? Couldn't nanobind do all of this automatically for me if
std::is_aggregate_v<>
is true for the type?Beta Was this translation helpful? Give feedback.
All reactions