Boost logo

Boost :

Subject: Re: [boost] [system] Would it be possible to trial a breaking change to Boost.System and see what happens?
From: Peter Dimov (lists_at_[hidden])
Date: 2018-01-13 15:58:18


charleyb123 . wrote:
...
> My opinion is that there is a single category of 'std::error_code' values:
>
> (a) something-or-nothing
>
> ...whereby an application must interrogate with an 'enum', which is the
> process of collapsing many-values (possibly across domains) for a boolean
> result, like one of::
>
> if(ec == BADNESS_MUST_ABORT)
> ...
>
> if(ec == IS_OK_CAN_PROCEED)
> ...

`if( ec == errc::success )` is an interesting solution to the
NTSTATUS/HRESULT problem.


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