Boost logo

Boost Users :

From: Serge Skorokhodov (serge.skorokhodov_at_[hidden])
Date: 2005-07-01 04:58:27

Douglas Gregor wrote:

>On Jun 29, 2005, at 2:24 AM, Serge Skorokhodov wrote:
>>I'm using boost::logic::tribool for expressing logical flags that may
>>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:)


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at