Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
IMHO, the normal serialization of a class for C ++ is the serialize () method prescribed in this class and the constructor of this class, which receives data in the format in which this method produces them.
Any other options - a direct road to the rake.
boost::serialization
And examples and descriptions and lessons - a lot!
But you can’t write “serialize the class for me, quick!”, but you have to write on your own what exactly and in what order will be serialized / deserialized. Serialization to binary and text (xml) formats is possible.
There is native support for std::string. Polymorphic serialization requires a bit more information to be provided, but there is support too.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question