Boost Serialization lib:Problem in object tracking and Exporting classes
Hi,
I'm new to Boost Serialization library . I wanted to use the library
for some of my full fledge so I thought I might as well test out the
features that the library documentation claimed it had . Many of the basic
features did work but some of the advanced features that I wanted most like
object tracking and serializing derived objects through a pointer to the
base class gave me some problems .
I faced the following two problems ( in order of decreasing priority ):
(1) Object Serialization : I have 4 pointers to 3 objects of the same class
, On deserializing these the pointers are mixed up . If while writing out
pointers 1 & 2 pointed to objects 1 and 2 , and pointers 3 and 4 pointed to
objects 1 and 3 then on restoration pointers 1 & 2 pointed to objects 1 & 2
but pointers 3 & 4 pointed to objects 2 and 3 instead of 1 and 3 .
(2) Writing derived objects through pointer to base class : This feature
worked if I did a registration through
ar.register_type(static_cast
participants (1)
-
mahesh prabhu