Boost logo

Boost Users :

From: troy d. straszheim (troy_at_[hidden])
Date: 2005-11-13 14:37:32


On Sun, Nov 13, 2005 at 10:26:49AM -0800, Robert Ramey wrote:
>
> I don't know what the standard library is supposed to do. But
> the fact is that at least some implementations of he standard
> library are not handling text i/o symetically in at least two cases:
>
> uninitialized bools.
> floating/double NaN, +/- inf, etc.
>

We hit this problem early on. We're serializing things where NaN is
overloaded to mean both NaN and "uninitialized", and where +/- inf are
perfectly valid values. We often need to serialize structures between
runs that contain sections that haven't been initialized. A couple of
our platforms have exactly this bug.

I'll dig up my changes and send them to you. IIRC they were three or
four lines each.

-t


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