23 Jan
2019
23 Jan
'19
8 p.m.
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_re.... 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