In article <1566BED9-E306-41CC-A1D5-C7617A0C1043@28msec.com>, david.graf@28msec.com says...
Hello Robert
I fixed the example. I had to add somewhere a virtual function. Otherwise, the polymorphism doesn't work.
Unfortunately, I have a new problem. If I put the code into a static library, the serialization from the outside doesn't work anymore. Then, I get a unregistered class exception. It only works when I put the code to execute the serialization into the cpp file where the classes are registered with BOOST_CLASS_EXPORT_GUID.
You do know that you can manually register items, right?
template < typename Archive >
void register_objects(Archive & ar)
{
ar.template register_type