13 Nov
2005
13 Nov
'05
7:37 p.m.
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