Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-09-10 12:12:20

That's the obvious place.

I don't think anything is dependent upon pointer size - as pointers
themselves are not stored.

I suspect the problem will be when using integers - I would expect the sizes
of these to change when moving to 64 bit platforms. After all size_t is an
integer. If it were me I would just forget it. The best would be to just
convert the binary archives into portable binary archives or something else.
That is, if you want portability - don't use binary archive which optimized
for speed.

Robert Ramey

Zrubavel Zodikovich wrote:
> Hi all,
> I need to make a modified version of binary archive so that it can
> read
> data serialized on a different platform. Specifically, I have a lot of
> files written with binary serializer on x86, and now I need to read
> them
> into application built on x64 platform ( sizeof(size_t) == 8 ).
> Obvious place to fix would be the load() functions in
> boost\archive\impl\basic_binary_iprimitive.ipp, replacing the
> std::size_t declaration with unsigned int.
> Are there less obvious places in the archive format that are dependent
> on the pointer size ?
> Thanks
> _______________________________________________
> Unsubscribe & other changes:

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