As a quick example, I "hooked together" boost pfr and nlohmann::json (which also supports binary formats like msgpack and bson), which does a pretty good of serving as a "lightweight" serialization system for C++ with pretty minimal boilerplate
thanks, I managed to save my data to a binary file, but I needed to extract all the POD from my class. I'll take a look at the implementation, not used to boost tho.