Douglas Gregor wrote:
On Jun 29, 2005, at 2:24 AM, Serge Skorokhodov wrote:
Hi, I'm using boost::logic::tribool for expressing logical flags that may be nulls by their nature (patient not asked, he/she doesn't know etc.). Default initialization to 'false' seems to be quite unnatural in this context and initialization to 'undetermined' seems to be prefered. Is any significant reason for boost::logic::tribool default constructor initializing the value to 'false'?
Because default-constructing a bool gives a false value, and tribool tries to mimick bool as well as possible.
So there is no reason to prevent customization? Because an uninitialized value should be unknown from the domain point of view (at least in the domain I'm currently work in:) -- Serge