Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-12-16 12:25:51


I don't think this would do it. There is no guarentee that these types
resolve to the same underlying type on the machine. That is _uint32
guarenties that it will hold a 32 bit number but doesn't guarentee that it
is in fact a 32 bit number and may well be a 64 bit number on a particular
platform. These are just typedefs for native types guarenteed to be able to
hold an integer of the required size. The native binary serialization will
is built for speed and does no conversion. The portable binary archive is
what you want here, but as I mentioned before - its up to an interested
party to finish.

Robert Ramey

Merrill Cornish wrote:
> Leon,
>
>>>> I assume if I would want to make the x86 data files readable on
>>>> an amd64 architecture, I would have to write my own conversion
>>>> utility,
>
> One less drastic alternative is to use explilcit types such as _int32
> or _uint64. That should make sure variables are of the same size on
> different machines.
>
> Merrill


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