19 Nov
2005
19 Nov
'05
1:22 a.m.
Paul Giaccone
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. -- Dave Abrahams Boost Consulting www.boost-consulting.com