Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] [archive] Bug serializing vectors consecutively
From: Paul Eipper (lkraider_at_[hidden])
Date: 2009-08-25 15:10:12


On Tue, Aug 25, 2009 at 3:57 PM, Jeff
Flinn<TriumphSprint2000_at_[hidden]> wrote:
> Paul Eipper wrote:
>>
>> Hi,
>>
>> I've hit what I believe is a bug in boost serialization, at least on
>> binary and text archive modes.
>
>    void save()
>    {
>        ...
>
>        oa << this;
>    };
>
>    void load()
>    {
>        std::ifstream ifs(filename.c_str()); // needs binary mode
>        ...
>        ia >> *this;    // your not loading what you serialized?
>    };
>
> Jeff

You guys are correct, I thought it was a bug because when using the
xml archive it was working like this

thanks :)

--
Paul Eipper

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