Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] [archive] Bug serializing vectors consecutively
From: Stefan Strasser (strasser_at_[hidden])
Date: 2009-08-25 17:04:51


Am Tuesday 25 August 2009 20:08:14 schrieb Paul Eipper:
> I cannot deserialize it back, since boost throws "stream error" if
> it's a text archive, or "std::length_error" on vector::reserve if it's
> a binary archive.
> Attached is an example code.

not a bug, you are serializing a pointer, but deserializing an object.
this vs. *this.


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