[Serialization] Stream error when serializing float and unsigned int
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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
D Kruithof
-
Robert Ramey