14 Jan
2018
14 Jan
'18
1:23 a.m.
`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.
Ah, I'd have defined operator bool to be `if(*this == std::errc::success)` if we could wind back the clock. Problem solved. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/