Is there something similar to Java/.NET serialization for C++?
Google's protocol buffers provides a C++ implementation in the core package; as a nice benefit, you can then share this data with lots of other languages - but you will be limited to using the generated types rather than your own (which some serialization engines in other languages support).
In reality this isn't a problem, as (if necessary) you can just treat the generated types as a DTO that twin to your actual domain objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With