13 Nov
2005
13 Nov
'05
3:01 p.m.
Daryle Walker
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