r/cpp • • Sep 14 '26

Push-based vs Pull-based Customization

https://brevzin.github.io/c++/2026/09/14/push-vs-pull/

Emulating Rust attributes with reflection (or at least trying to).

48 Upvotes

10 comments sorted by

View all comments

5

u/grishavanika Sep 14 '26

Cool stuff. Question: if we are adding consteval blocks and code injection, can we special case templates as in "this code injection should work as if written by user, no weird workarounds"? Or that's the whole problem to be solved?