Boost logo

Boost :

Subject: Re: [boost] [system] Would it be possible to trial a breaking change to Boost.System and see what happens?
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2018-01-14 01:23:10

>> > `if( ec == errc::success )` is an interesting solution to the >
>> 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.


ned Productions Limited Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at