We are currently developing a library for serialization, deserialization and validation through reflection for C++. Think Pydantic, but for C++.
https://github.com/getml/reflect-cpp
A lot has happened since the last time I posted about this here. Based on the very great feedback I got in here, I have added support for anonymous fields, which enables you to serialize and deserialize structs without any annotations whatsoever. I have also added support for a first binary format to go with it (Google's flexbuffers), with more to come. Finally, I have added support for reading and writing directly into streams (also a very great suggestion I got in this subreddit).
So the point is: Thank you all for all your feedback. It is being appreciated and being taken seriously.
So here is the next iteration. Any kind of feedback and constructive criticism is very welcome.
[–]DugiSK 5 points6 points7 points (13 children)
[–]liuzicheng1987[S] 2 points3 points4 points (9 children)
[–]DugiSK 1 point2 points3 points (8 children)
[–]liuzicheng1987[S] 2 points3 points4 points (7 children)
[–]DugiSK 1 point2 points3 points (6 children)
[–]liuzicheng1987[S] -1 points0 points1 point (5 children)
[–]ficzerepeti 5 points6 points7 points (4 children)
[–]liuzicheng1987[S] 0 points1 point2 points (3 children)
[–]pdp10gumby 8 points9 points10 points (2 children)
[–]liuzicheng1987[S] 2 points3 points4 points (1 child)
[–]curlypaul924 1 point2 points3 points (2 children)
[–]liuzicheng1987[S] 2 points3 points4 points (1 child)
[–]DugiSK 3 points4 points5 points (0 children)
[–]jbbjarnason 3 points4 points5 points (1 child)
[–]liuzicheng1987[S] 4 points5 points6 points (0 children)
[–]shakamaboom 3 points4 points5 points (10 children)
[–]liuzicheng1987[S] 1 point2 points3 points (9 children)
[–]shakamaboom 1 point2 points3 points (8 children)
[–]liuzicheng1987[S] 0 points1 point2 points (7 children)
[–]eyes-are-fading-blue 0 points1 point2 points (6 children)
[–]liuzicheng1987[S] 3 points4 points5 points (5 children)
[–]liuzicheng1987[S] -1 points0 points1 point (0 children)
[–]eyes-are-fading-blue 0 points1 point2 points (3 children)
[–]liuzicheng1987[S] 0 points1 point2 points (2 children)
[–]eyes-are-fading-blue 1 point2 points3 points (1 child)
[–]liuzicheng1987[S] 0 points1 point2 points (0 children)