Boost logo

Boost Users :

From: Jerry (jerry_at_[hidden])
Date: 2008-03-20 22:45:40


Thx Sohail

This hierarchy is all registered using BOOST_CLASS_EXPORTED. XML export
works in exactly the same scenario, using binary_oarchive fails.

----- Original Message -----
From: "Sohail Somani" <sohail_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Friday, March 21, 2008 2:24 AM
Subject: Re: [Boost-users] boost::serialization oserializer weirdness

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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