Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-11-18 23:20:02


David Abrahams wrote:
> Paul Giaccone <paulg_at_[hidden]> writes:
>
>> However, this is not what I am requesting. What I am asking for is a
>> note in the documentation on the page headed "Serialization - Archive
>> Exceptions" under "stream_error" that says something along the lines
>> of "This exception can also occur when reading an archive to which
>> uninitialized data has been written.
>
> Undefined behavior can induce any effect at all, so of course it can
> result in a stream_error exception. However, if the program is going
> to try to intentionally respond to uninitialized data it should NOT be
> with an exception, but with an assertion.

I just added a note saying that one possible cause of a stream error
would be an attempt to store uninitialized data. I had already
included the assertion.

I hope that can satisfy everyone.

Robert Ramey


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