$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Matthias Troyer (troyer_at_[hidden])
Date: 2005-10-10 14:15:51
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