Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7474: compilation error in boost::serialization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-23 20:08:49
#7474: compilation error in boost::serialization
--------------------------------------------+-------------------------------
Reporter: Like Gao <gao.like@â¦> | Owner: ramey
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: serialization
Version: Boost Release Branch | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+-------------------------------
Changes (by Like Gao <gao.like@â¦>):
* status: closed => reopened
* resolution: invalid =>
Comment:
I have to report this again. Changing to const form also gave the exact
same error:
{{{
const MyClassA clsA(12); // error - should be "const"
}}}
Please try this example with const form. I don't know if this work with
VC but gcc always gave error even the const form.
As in my first post, the issue appears due to the one line change in
/opt/local/include/boost/serialization/access.hpp:
{{{
// pass calls to users's class implementation
template<class Archive, class T>
static void member_save(
Archive & ar,
//const T & t, // change to below
T & t,
const unsigned int file_version
){
t.save(ar, file_version);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7474#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