29 karma · joined March 4, 2021
Another option would be to copy some stuff over to the compiler-explorer and use a "single-header" version of the library there. I can facilitate this in case you are interested. They have reflection for EDG, GCC and Clang (I am only working with clang for now)
I want to make this project as mature as possible for when support arrives at the upstream version of clang, gcc and msvc. Feedback is appreciated!
It is officially part of C++26, so only a matter of time before being part of the major compilers (:
I've added a pre-built image in the github repo, feel free to try it out if you are curious and let me know if you face any issues/bugs!
Will add support for it as soon as I have some time to spare!
Another thing that I can't make work elegantly is compiling template functions from C++, since we have no clue to guess which types will be instantiated in the Python code (and they can even depend on user input, so only determined at runtime)
This idea of using C++26 compiler just for codegen sounds interesting. Will definitely give it some thought, thanks for the suggestion (: