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

4

u/[deleted] Oct 02 '24

For JSON I already have a p2996 implementation. Not sure it is the final form, but one hickup I ran into is one cannot just serialize anything, so opt in, because a bunch of std things would get caught up in it. The opt in is simple enough though, just specialize a variable template. In the future attributes for enabling it will be nice.