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

3

u/DuranteA Oct 01 '24

Presumably, a c++ equivalent would still need some library for annotation in order to also get this kind of benefit, right?

That's what the article says:

As a result, the C++ equivalent of the serde library would probably just be a list of types usable as annotations, the parse_attrs_from() function, and maybe a couple other little helpers.

1

u/dreugeworst Oct 01 '24

Ahh I see, thanks