Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11071: boost serialize compile errors on simple implementation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-04 21:17:43
#11071: boost serialize compile errors on simple implementation
-------------------------------+---------------------------
Reporter: tony@⦠| Owner: ramey
Type: Support Requests | Status: closed
Milestone: To Be Determined | Component: serialization
Version: Boost 1.57.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------+---------------------------
Changes (by ramey):
* status: new => closed
* resolution: => invalid
Comment:
{{{
#include <boost/serialization/vector.hpp>
#include <boost/archive/text_archive.pp>
namespace boost {
namespace serialization {
class Cqnodelist
{
public:
friend class boost::serialization::access;
Cqnodelist(){}
std::vector<int>qnodelist;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & qnodelist;
}
};
void kb_write_list ()
{
Cqnodelist ql;
ofstream ofs("kabi-list.dat");
{
text_oarchive oa(ofs);
oa << ql;
}
}
}
}}}}
The above should fix it. I would encourage you to spend some more time
looking at the documentation and examples.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11071#comment:1> 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:18 UTC