|
Boost Users : |
Subject: Re: [Boost-users] Serialization of a complex data structure
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-04-28 17:19:51
Marco Meoni - Sbaush wrote:
> struct Example{
> friend class boost::serialization::access;
> template<class Archive>
> void serialize(Archive & ar, const unsigned int /*
> file_version */){
ar & results_container; // INCLUDE THIS
> }
> Container* results_container;
> MyMap this_is_a_map;
> Example(){}
> ...
> ...
> };
Try specifying which members you want to serialize in the serialize function. See above.
Robert Ramey
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net