On Jun 1, 2014, at 6:38 AM, Daniel Krikun
I have an application which creates some objects connected between them using boost::shared_ptr and then executes a main loop. The object graph structure is almost constant over time but primitive member fields of the objects change over time. I would like to serialize the whole object graph *each cycle* saving both the object graph structure and primitive member fields. Currently I don't know how to achieve this: when I try to serialize via pointer only first value is saved. Also, I'm not sure if I should turn object tracking off, because indeed it should be a single instance of each, it just should be modified over time.
For each re-serialization of the graph, create a new serialization archive, always writing to the same stream. Similarly on read, of course.