From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-02-12 05:57:19


Robert Ramey wrote:
> Peter Dimov wrote:
>> Consider an archive where unsigned int and unsigned long have a
>> different internal representation. When a value of a size_t type is
>> written on
>> platform A, where size_t == unsigned int, platform B, where size_t ==
>> unsigned long, won't be able to read the file.
>
> native binary archives are not guarenteed or even expected
> to be portable accross platforms.
>
> text archives don't have this problem.

That's why I said that currently the serialization library will appear to
work with a size_t. Only after an archive is added where unsigned int and
unsigned long differ in their representation will the problem manifest
itself.