Boost logo

Boost Users :

From: Sohail Somani (sohail_at_[hidden])
Date: 2008-03-20 22:24:44


On Fri, 21 Mar 2008 02:13:36 +0000, Jerry wrote:

> Within the same .cpp file I'm trying to serialize instances of the same
> hierarchy to boost::archive::binary_oarchive using this code:

Hi,

You say this is a hierarchy. In that case, you have to be sure that you
have BOOST_CLASS_EXPORTED or otherwise registered the child classes.
Though now that I think about it, that should throw an unregistered cast
exception iirc.

Does that help?

-- 
Sohail Somani
http://uint32t.blogspot.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net