Boost logo

Boost :

Subject: Re: [boost] LEAF has been refactored, it now has a much simplified error handling interface
From: Sorin Fetche (sorin.fetche_at_[hidden])
Date: 2019-01-23 19:46:56

On Wed, Jan 23, 2019, 2:07 AM Emil Dotchevski via Boost <
boost_at_[hidden] wrote:

> Thank you for testing.
> I fixed the first assert, I hadn't tested catch_<> when there is no
> exception. It works now.

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.

I have two unsuccessful attempts at this on wandbox (together with
leaf/all.hpp merged in a single file by a little Python script):

- with try_:

- with capture_result:

Any suggestions on how to change the test(s) to achieve this?
Would this be a use case supported (efficiently, when no error occurred) by
the LEAF library?


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