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-22 05:38:58
#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 ramey):
Replying to [comment:2 robtoth@â¦]:
I made this program compile by adding
{{{
friend class Derived; // make Derived a friend
...
virtual void print() const { // add "const" here
cout << "Derived" << endl;
}
...
const Derived d; // add "const" here
}}}
The addition of "const" is pretty obvious.
The addition of "friend" is not obvious and wouldn't seem necessary. On
the other hand, I looked at the code and don't see an easy way to fix
this.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2984#comment:3> 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