Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3638: de-serialization of shared_ptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-22 21:20:39
#3638: de-serialization of shared_ptr
--------------------------------------+-------------------------------------
Reporter: anonymous | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: serialization
Version: Boost Development Trunk | Severity: Problem
Keywords: serialization shared_ptr |
--------------------------------------+-------------------------------------
Comment(by emilm@â¦):
Temporary fix is to make the serialized class polymorphic by adding at
least one polymorphic function (ex. the destructor).
To fix this you need to patch boost/archive/shared_ptr_helper.hpp and at
line 111 after return add an &.
So,
{{{
return &boost::serialization::singleton<
...
}}}
instead of
{{{
return boost::serialization::singleton<
...
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3638#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC