Re: [Boost-users] [Serialization]Serializing from base class pointers clips derived class

Thanks for the response. Under closer inspection, the serialize calls are
never made for either the derived classes or the base class when using a
base class pointer. This is the xml output after save_derived is called:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>

Looks like they are being called to me.
I think there is some confusion created by the fact that these pointers are tracked.
consider:
<rb2 class_id_reference="2" object_id_reference="_1"></rb2>
class_id_reference="2" which is the same as the class_id for rd2
object_id_reference="_1" indicates that this is the same object as rd2.
The information is not repeated because it has already been saved and
so its not necessary to repeat it and doing so might create duplicate
pointers on loading.
Robert Ramey
"Daniel Roberts"
participants (2)
-
Daniel Roberts
-
Robert Ramey