27 Jun
2007
27 Jun
'07
7:35 p.m.
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