TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25328 14
reflect-cpp v0.25.0 is released - includes support for CLI parsing, boost-serialization, cereal, yas

As someone whom I have met on this subreddit pointed out to me, it's been a while since I've posted here , so I thought maybe it is time for another post.

reflect-cpp (https://github.com/getml/reflect-cpp) is a C++-20 library for serialization and deserialization, similar to Rust's serde or Python's Pydantic.

Through discussions in this subreddit, we figured out that reflection capabilities, which are now officially supported in C++-26, can actually be achieved in C++-20. So we built an entire library around it. If you are interested in how that can be done in C++-20, I'd be happy to explain it to you.

v0.25.0 introduces a series of new features. My favourite one is CLI parsing, which is similar to Rust's structopt. This community contribution came completely out of the blue, but I love it. But we also introduce support for three new serialization format's, namely boost-serialization, Cereal and yas.

I am particularly impressed by yas' (https://github.com/niXman/yas) performance - even though it is not a very well-known format/library, it significantly outperforms most of the more well-established formats in our benchmarks.

As always, any kind of feedback, particularly constructive criticism is very welcome.



https://redd.it/1tsqnyy
@r_cpp
GitHub GitHub - getml/reflect-cpp: A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON… A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, Avro, Boost Serialization, BSON, Cap'n Proto, CBOR, Cereal, Command line interfaces, ...
More from @r_cpp
  1. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  2. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  3. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
  4. Sep 20, 2026A clever branch free optimization I'm the developer of memlz which is an extremely fast co…
  5. Sep 15, 2026Inside Boost.PolyCollection https://bannalia.blogspot.com/2026/09/inside-boostpolycollecti…
  6. Sep 11, 2026C++26: Standard Library Hardening Experiments https://www.cppstories.com/2026/hardening-ex…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →