Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-13 10:01:47


Daryle Walker <darylew_at_[hidden]> writes:

> Reading from an uninitialized variable, like what could happen in the
> original case during encoding, is not a problem any library can fix. The
> programmer just has to be non-sloppy.

I buy Robert's argument that, in the case of bool, the assertion will
often help him diagnose the problem and help his users when they
complain that the library isn't working because they forgot to
initialize something.

That same argument doesn't work for NaNs, for all kinds of reasons.

-- 
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