|
Boost Users : |
Subject: [Boost-users] [serialization] simple binary archive problem
From: Paul Graphov (graphov_at_[hidden])
Date: 2010-09-08 06:58:47
Hello Boost users!
I've upgraded to boost-1.44 and got a problem with binary serialization
archives.
This code sample
http://pastebin.com/Uv465sGt
worked well with 1.43 but doesn't work with 1.44
This is a program that creates a struct, serializes it, deserealizes back
and compares,
archive file name should be supplied as command line parameter.
After switching from binary_*archive to text_*archive it works well.
With binary_*archive it fails with
terminate called after throwing an instance of 'std::bad_alloc'
Stack trace is quite huge.
p.s.
[druid_at_druid-desktop tmp]$ uname -a
Linux druid-desktop 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC
2010 x86_64 GNU/Linux
[druid_at_druid-desktop tmp]$ gcc --version
gcc (Ubuntu/Linaro 4.4.4-13ubuntu2) 4.4.5 20100902 (prerelease)
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