$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-06-02 23:54:20
Wu Yinghui, Freddie wrote:
>
> Based on my own experience, boost binary archives are _not_ guaranteed
> to be portable between different hardware platforms.
well your experience agrees with the documentation.
There are also
> some hints in the documentation, though I do not immediately recall
> where it is mentioned. (The problem is mostly due to endian mismatch
> and datatype size difference, if my memory is right.)
>
> What I did to counter this problem is to write a very simple subclass
> of binary archives and handle specifically the endian problem. The
> datatype size problem can be handled by serialization only types with
> specific size no matter on which platform, e.g. boost::int32_t, etc.
It sounds similar to the demo_portable_archive example included with B.S.
Robert Ramey