
12 Dec
2007
12 Dec
'07
8:48 p.m.
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 diligence. -- Sohail Somani http://uint32t.blogspot.com