Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2984: Cannot serialize protected and private base classes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-02 00:41:21
#2984: Cannot serialize protected and private base classes
----------------------------------------+---------------------------
Reporter: Eric Moyer <eric_moyer@â¦> | Owner: ramey
Type: Bugs | Status: closed
Milestone: | Component: serialization
Version: Boost 1.37.0 | Severity: Problem
Resolution: invalid | Keywords:
----------------------------------------+---------------------------
Changes (by ramey):
* status: reopened => closed
* resolution: => invalid
Comment:
OK _ looked at this more carefully.
There is more going on here than meets the eye.
test_private_base.cpp demonstrates that one can serialize a private base
class with no problem.
test_private_base.cpp demonstrates the problem which occurs when one tries
to serialized through a pointer to a private base class. The program
fails to compile at line 90. Basically one cannot do this in C++. I've
searched in vain for a way to do this but haven't found any. The
BOOST_CLASS_EXPORT uses the same functionality to implement this facility
so it has the same problem.
Bottom line - serializatiion of private/protected base classes is fine -
but one cannot serialize such classes through a base class pointer.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2984#comment:5> 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:19 UTC