|
Boost : |
From: Michael Walter (cm_at_[hidden])
Date: 2002-11-27 13:56:11
KL> 2) Although both POSIX and C99 define them to be 2's complement integers
KL> with the appropriate number of bits, neither standard sets a requirement
KL> on byte ordering within the multibyte types. Thus, even if a platform
KL> supports them (say, the BSD family), the binary form of the integers is
KL> not portable.
KL> So, while use of them may lead to a MORE portable C++ interface, they
KL> won't directly lead to a portable binary serialization format (although
KL> you can clearly fix that problem in platform specific byte reordering code).
The Serialization library can still take care of byte swapping - my
point was just not to use the platform dependant types in the
interface but only in the client's implementation (which you have to
do anyway).
-- Best regards, Michael mailto:cm_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk