I read about the non-intrusive serialization but my problem is:
in non-intrusive example the code for serialization is
void serialize(Archive & ar, gps_position & g, const unsigned int version) {
ar & g.degrees;
ar & g.minutes;
ar & g.seconds;
}
In my example i should do this:
ar & results_container;
result_container is not a STL type, but is a Container*. So i should declare in Container body the serialization method (as suggested by Robert). Is this right?
The big problem is that i can't write in Container body, because is not a mine class, but is a lib class.
How can i serialize all my members in the same way of STL type, without worring about nested serialize methods?
Is the asked question clear?
thank you so much.