On Wed, Jan 23, 2019, 2:07 AM Emil Dotchevski via Boost < boost@lists.boost.org 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_: https://wandbox.org/permlink/t0r0IUntnga6zUUK - with capture_result: https://wandbox.org/permlink/OCfmA9WXEgSySE1E 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? Thanks, Sorin