|
Boost Users : |
Subject: Re: [Boost-users] [Serialization] Stream error when serializing floatand unsigned int
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-08-10 16:59:51
Generally, std::?stream can't handle input of NaN values.
This shows up as a stream error when serializing from text based archives.
Robert Ramey
D Kruithof wrote:
>> Hello All,
>>
>> When serializing this class:
>>
>> class
>> {
>> float a;
>> unsigned int b;
>> };
>>
>> i get a stream error upon de-serializing, when 'a' has the value
>> infinity. Is this a bug?
>>
>> I included a (very small) program which shows the error. It crashes
>> on iteration 3. I use the mingw 3.4.5 compiler with boost 1.38 (no
>> changes have been made to serialization since 1.38) on windows XP.
>>
>> Thanks,
>>
>> D Kruithof
>
>
>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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