$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [serialization] [archive] Bug serializing vectors consecutively
From: Paul Eipper (lkraider_at_[hidden])
Date: 2009-08-25 14:08:14
Hi,
I've hit what I believe is a bug in boost serialization, at least on
binary and text archive modes.
If I have two member vectors (of int, for example), and the serialize
code is like this:
ar & vector1;
ar & vector2;
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.
att,
-- Paul Eipper