Boost logo

Boost :

From: Alec Ross (alec_at_[hidden])
Date: 2002-08-05 02:36:37


In message <200208042218.04511.gregod_at_[hidden]>, Douglas Gregor
<gregod_at_[hidden]> writes
>On Saturday 03 August 2002 09:57 pm, Petr Kocmid wrote:
>> How should we do input and output with tribool? With value hidden, people
>> certainly want basic_istream operator>> and << for basic_ostream. More,
>> without possibility to convert to numeric type one would need needs a
>> locale facets for tribool.
>> So, some stream crafting similar as in boost quaternion comes to question
>> (Quaternion i/o is modelled after std::complex I believe).
>>
>> Petr Kocmid
>
>Yes, this should be handled, I'm just not sure how :). How should the third
>state of tribool look? Should it have a specific value? (-1? 2?) Or just name
>it?
>
Some suggestions for display, with a typical locale:

                                ?
                                x
                                - // hyphen
                                _ // underscore
or
                                unknown
                                indeterminate
or
        some user defined text, possibly defaulted, e.g. to one of the
above

-- 
Alec Ross

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk