Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-18 20:22:31


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.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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