11 Jan
2005
11 Jan
'05
6:11 p.m.
Sorry this isn't clear from the documentation. At the end of the file shared_ptr.hpp you'll find special macros to handle this: #define BOOST_SHARED_POINTER_EXPORT_GUID(T, K) ... #define BOOST_SHARED_POINTER_EXPORT(T) .. Using these should do the job for you. Robert Ramey Jarl Lindrud wrote:
Hi! A question on serializing pointers to derived classes:
When I serialize naked polymorphic pointers through base pointers, things work as expected, ie the derived classes are serailized and deserialized. However, when I replace the naked pointers with corresponding boost::shared_ptr's, I get an archive_exception, to the tune of "unregistered class".