Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2984: Cannot serialize protected and private base classes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-24 16:42:26
#2984: Cannot serialize protected and private base classes
------------------------------------------------+---------------------------
Reporter: Eric Moyer <eric_moyer@â¦> | Owner: ramey
Type: Bugs | Status: reopened
Milestone: | Component: serialization
Version: Boost 1.37.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------------+---------------------------
Comment (by robtoth@â¦):
Sorry but I still can't compile this. The const is fine and I understand
it, but the "friend" doesn't help.
''boost_serialize_protected_bug_minimal_2.cc:''
{{{
...
class Base1{
friend class boost::serialization::access;
friend class Derived; // Added this
...
}}}
I still get the error:
{{{
include/boost/serialization/smart_cast.hpp:204: error: 'Base1' is an
inaccessible base of 'Derived'
}}}
This is on gcc svn trunk (2013-01-22, version 4.8) and boost svn trunk (as
of 2013-01-22, version 1.53.0).
Did you do something different from what I did to make Derived serialize?
I can attach the full error output if it would help.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2984#comment:4> 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:11 UTC