a) note that the issues related to pointers and non-default constructorsor orthogonal so you actually have two separate problems here.
b) non-default constuctors. Check out files in the ...../libs/serialization/test directory:test_non_default_ctor and test_non_default_ctor2. Make a small programto test your serialization - don't use pointers just make sure thebasic serialization works.
c) pointers. The system is designed to permit serialization through anabstract pointer to a base class. However, it does require some care1) there are two methods - "register" and "export" - you've used bothin our example. I recommend using one or the other just to keepfrom getting too confused.
2) remember if you serialize through a derived pointer you can'tde-serialize through the base class. That is, you always haveto de-serialize to the exact same type you serialized from.
3) your example showsclass D2 {...};BOOST_CLASS_EXPORT_GUID(D1, "D1"); // should be D2 !!!check out ...../libs/serialization/test/test_exported.cpp for an example.Robert Ramey
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users