13 Jan
2018
13 Jan
'18
3:58 p.m.
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.