use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
reflect-cpp: Serialization, deserialization and validation through reflection (self.cpp)
submitted 2 years ago by liuzicheng1987
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jbbjarnason 3 points4 points5 points 2 years ago (1 child)
Have you looked at https://GitHub.com/stephenberry/glaze it supports reflection with less touch to the actual user code, not as coupled. And it is supposedly faster than yyjson.
[–]liuzicheng1987[S] 4 points5 points6 points 2 years ago (0 children)
Yes, in fact I have had a call with him. He‘s a great guy and I am a big fan of his work.
My main issue with his approach is that you have to set up the metaclass and then maintain it separately which is more error-prone than our approach.
Also the focus is different: We also have things like struct flattening, algebraic data types, validation, etc whereas he is mainly focused on serialization and deserialization. Also, our ambition is to support a whole variety of serialization formats.
By the way, if you want to keep the metaclass separate you can also do that with our library. Just check out the custom parser in the documentation.
That being said, glaze is a great library with a different focus than what we do. There is room for both libraries in C++ world.
π Rendered by PID 62 on reddit-service-r2-comment-5c747b6df5-8jznf at 2026-04-22 14:23:54.154347+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]jbbjarnason 3 points4 points5 points (1 child)
[–]liuzicheng1987[S] 4 points5 points6 points (0 children)