Boost logo

Boost Users :

Subject: Re: [Boost-users] Segfault when trying to deserialize std::lists in a multi_array
From: Jiří Vyskočil (svzj_at_[hidden])
Date: 2011-07-25 04:30:22

Sorry, I accidentaly edited that part out when posting. The whole struct
look like this:

#include "common.h"
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>

struct Particle {
    V3D r, u;
    double m, q, igamma;
    double qm; // = q/m
    unsigned number;

    friend class boost::serialization::access;
    template<class Archive>
    void serialize(Archive & ar, const unsigned int file_version) {
        ar & r;
        ar & u;
        ar & m;
        ar & q;
        ar & igamma;
        ar & qm;
        ar & number;

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at