Boost logo

Boost :

Subject: Re: [boost] LEAF has been refactored, it now has a much simplified error handling interface
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2019-01-23 20:00:04


> I'm trying to evaluate how the LEAF library would work for transporting
> additional information besides error codes when implementing Asio
> asynchronous operations.
>
> So, my next test is to capture both errors and exceptions together with
> additional info and pass them to the completion handler that will do a
> detailed error analysis.

The canonical way to implement this is to customise ASIO's async_result
to pass additional info. See
https://www.boost.org/doc/libs/1_69_0/doc/html/boost_asio/reference/async_result.html.

As it would be useful for Outcome to document this, I've logged an issue
to https://github.com/ned14/outcome/issues/165 to explain how to
customise ASIO's async_result for outcome::result<T>.

Niall


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