
1 Feb
2010
1 Feb
'10
12:53 a.m.
On Sun, Jan 31, 2010 at 10:34 AM, Robert Ramey
The problem is caused by double values less than DBL_MIN. Apparently, streaming such values in causes the input stream fail_bit to be set, which causes the serialization lib to throw an exception.
The standard stream library writes out NaN values as text, but cannot read them.
It shows up in various places besides the serialization library - e.g. lexical_cast.
Work has been done on this. I believe that there is code in vault which deals with this.
Why not just memcpy the double into the stream? (or bitcast it to long long or so?)