Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2002-11-28 14:41:05


On Thursday, November 28, 2002, at 07:42 PM, Iain K.Hanson wrote:
> But C 99 standardised the int*_t types and in anticipation that C++ 0x
> might do the same, boost has them in the integer library ( cstdint.hpp
> ).
>
> Two suggestions *I think* have been made.
>
> 1) that the serialisation library recommends to users who want portable
> archives, should use the boost::int*_t types instead of short, int,
> etc.

That would be necessary in any case

>
> 2) That the serialisation library could detect the size of integral
> types
> being serialised and use the correct int*_t types instead of short,
> int etc.

That is possible. The remaining questions is whether

3) the serialization library should anticipate that t C++ 0x might
standardize the int*_t types and, for the sake of portability use them
already now as fundamental types instead of short, int and long

Note that this would keep text based archives formats at least as
portable as they are now.

Matthias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk