Boost logo

Boost Users :

From: Serge Skorokhodov (serge.skorokhodov_at_[hidden])
Date: 2005-08-08 08:57:47


Hi,
>
>> Just some follow-up explaining why I need tribool with
>> 'unknown' indetermined state sematics:
>>
>> I'm working in a domain (HL7 v3) that explicetely contain a
>> type of boolean value that can be null (of several null
>> flawors: just unknown, patient not asked, patient asked but
>> does not know... etc.)
>>
>
> Pentabool, then? Or maybe you should just define an enumerated
> type for this specialised need. I don't think it's possible
> to define generally useful semantics for nulls, given the
> variety of uses they are put to.
>

Sure you're right! I use just an enum. But tribool with
'being_null' initial state was very convinient though;)

-- 
Serge

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