|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-01-11 13:11:20
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".
>
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