Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-06-27 15:35:25


On Wed, 2007-27-06 at 21:10 +0200, Johan Franzén wrote:
>
> Hello Avery,
>
> I suspect You need to BOOST_CLASS_EXPORT(A) as well, since You do
> try to serialize an A in X's serialize() method. This is was I
> ended up doing when serializing a hierarchy of derived classes and
> a base class. I'm not sure how to do that in Your case, since I
> had all classes and all BOOST_CLASS_EXPORT macros in a single header
> file.
>
> HTH,
> Johan Franzén

I think Johan is right. I've found that the safest way to do polymorphic
serialization is export ALL your classes, always in cpp files.

Templates are another story.

:)

Sohail


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