
10 Oct
2005
10 Oct
'05
7:15 p.m.
On Oct 10, 2005, at 7:42 PM, Jared McIntyre wrote:
I've gone through the documentation, and I'm still unable to get this particular aspect of serialization working. I have two objects 'a' and 'b', and 'b' inherits from 'a'. I have a vector of 'a' pointers that may just be 'a' or may be 'b'. I've preregistered 'b', right before the vector serialization occurs, so that the serialization system should properly recognize that 'b' inherits from 'a'. However, only the 'a' pieces of each 'b' in the vector serializes.
Do your classes have virtual destructors or other virtual member functions? If not, I believe the serialization library cannot deduce the derived type. Matthias