Boost logo

Boost :

From: Sohail Somani (sohail_at_[hidden])
Date: 2007-12-12 15:48:58

On Wed, 12 Dec 2007 11:00:01 -0800, Arunava Saha wrote:

> I am using boost serialization library in one of my project. I have a
> question regarding that, is serialization library of boost cross
> platform compatible? By 'cross platform', I mean that, can we
> de-serialize a 64 bit dump in a 32 bit machine?

If you use text or xml archives and providing you ensure that the types
on both sides are the same size. This means to make sure you always
serialize int64_t not just int. In practice, if you are sure that your
values will never exceed the capacity of the smallest type, then you
don't need to do the above. Though I would still suggest it for due

Sohail Somani

Boost list run by bdawes at, gregod at, cpdaniel at, john at