Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3747: Not possible to split derived classes in several files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-15 07:17:22
#3747: Not possible to split derived classes in several files
--------------------------------------------------+-------------------------
Reporter: Runar Undheim <r.undheim@â¦> | Owner: ramey
Type: Bugs | Status: reopened
Milestone: Boost 1.42.0 | Component: serialization
Version: Boost 1.41.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------+-------------------------
Changes (by Runar Undheim <r.undheim@â¦>):
* status: closed => reopened
* resolution: invalid =>
Comment:
"serilizationbase.hpp" include these files:
{{{
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/export.hpp>
#include <boost/serialization/base_object.hpp>
}}}
So what archive classes are missing? I have to know the error before I can
update the documentation.
But I manage to reproduce the bug with the updated files you sent me with
a small change. So you could just try with your own files with a little
change in the Main class:
{{{
#include "serializationDerived.hpp"
class Main : public Base {
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Base>(*this);
ar & m_objects;
ar & m_object;
}
public:
std::vector<Base*>
m_objects;
Object
m_object;
Main(
)
{
}
};
}}}
Did you try that?[[BR]]
1) Should it be allowed to both serialize an instance and a pointer to a
class?[[BR]]
2) Should it be possible to split the serialization classes into different
files?[[BR]]
If the answer to 1 and 2 are yes then it seems to be a bug at least when
compiling with msvc 8.0.
Runar Undheim
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3747#comment:6> 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:02 UTC