14 Jan
2018
14 Jan
'18
12:54 a.m.
Niall Douglas wrote:
`if( ec == errc::success )` is an interesting solution to the NTSTATUS/HRESULT problem.
Oh if we could redo Boost.System with hindsight ... but that's always the case with any standardised Boost library bar none.
The above actually works within the existing framework, there's no need to redo anything. But it's not perfect. It'd have been better if there were a success bit in the error_code so that we didn't have to ask the category each time.