David Abrahams wrote:
Paul Giaccone
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