On Wed, Nov 14, 2018 at 3:17 PM Gavin Lambert via Boost < boost@lists.boost.org> wrote:
On 15/11/2018 11:19, Emil Dotchevski wrote:
LEAF (Low-latency Error Augmentation Framework) is a new error handling library which could possibly become the successor of Boost Exception, though LEAF can be used without exceptions too.
Official documentation: https://zajo.github.io/leaf/
Looks interesting.
Does the implementation internally use thread-locals?
It uses thread_local raw pointers, one per error type. This is needed in order to decouple result<T> from the static type of error objects being propagated, which I consider critical, see https://zajo.github.io/leaf/#rationale. Is it compatible with coroutines or fibers or other non-thread-based stacks?
Good question. I'm not sure, but I'm interested to know what are the issues.