[Boost-bugs] [Boost C++ Libraries] #10727: polymorphic serialization of shared_ptr fails

Subject: [Boost-bugs] [Boost C++ Libraries] #10727: polymorphic serialization of shared_ptr fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-31 16:13:25

#10727: polymorphic serialization of shared_ptr fails
 Reporter: oswin.krause@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.56.0 | Severity: Regression
 Keywords: |
 This issue arised in boost 1.56 and got reported here the first time:


 the answer reported this as being a likely duplicate of another fixed bug.
 I reported the bug later via the mailing list twice(1.56 after code
 analysis and 1.57 beta1) so now
 the official bug report to make it more official.

 "taking a look at the trac ticket in the answer:
 i came to the conclusion that this is not the same bug. the ticket there
 reported an error due to missing includes. However, the bug in the
 polymorphic archives is different as the polymorphic_iarchive class does
 not derive from detail::helper_collection (however the
 polymorphic_*_iarchive class do as they derive from *_iarchive via
 polymorphic_iarchive_rout) and thus a call to ar.template
 get_helper<T>() will fail when ar is the polymorphic_iarchive class. I
 am not sure how to fix this easily."

 Here is the error:

 /include/boost/serialization/shared_ptr.hpp:170:9: error: 'class
 boost::archive::polymorphic_iarchive' has no member named 'get_helper'

 the first link contains already a minimal example to reproduce the error.

 I would love to see it fixed prior to 1.57

Ticket URL: <https://svn.boost.org/trac/boost/ticket/10727>
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:17 UTC