Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] Deserialization of a float whose value is infinite throws an archive_exception ("stream error")
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-10-12 13:02:36


Luca wrote:

> I resolved the issue by checking all the data preventing accurately
> any infinite value before it is saved to an xml archive, but I wonder
> if this problem belongs to the library itself or not.

This is a result of the fact that the serialization library text and xml are
built upon text streams. an input stream can't read back a Nan which
an output stream has written.

Robert Ramey
>
> Greetings,
> Luca


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