Subject: [Boost-bugs] [Boost C++ Libraries] #2984: Cannot serialize protected and private base classes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-02 17:55:13
#2984: Cannot serialize protected and private base classes
-----------------------------------------------+----------------------------
Reporter: Eric Moyer <eric_moyer_at_[hidden]> | Owner: ramey
Type: Bugs | Status: new
Milestone: | Component: serialization
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
-----------------------------------------------+----------------------------
boost::serialization will not compile code that serializes a class that
has non-public base classes. It complains about an inaccessible base --
despite the friend definition for serialization::access.
There is a workaround for private base classes, since those can be
emulated by private member variables, but I can't think of any way to work
around the protected inheritance problem.
I am using g++ 4.3.3
Running on Ubuntu 9.04
I have attached two source files that cause the problem, one minimal and
one slightly less minimal (with some preprocessor macros I used to trace
down the problem).
I have also included the compiler output for the minimal code and the
Makefile I use to build them.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2984> 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:00 UTC