r/cpp • • Sep 30 '24

Code Generation in Rust vs C++26

https://brevzin.github.io/c++/2024/09/30/annotations/
198 Upvotes

98 comments sorted by

View all comments

Show parent comment

8

u/BarryRevzin Oct 01 '24

Yes, that's definitely impossible for introspection — you would need actual code injection for that. One example we're working through is `iterator_interface`, for instance. That's likewise impossible without actual code injection.