Popularity
3.1
Growing
Activity
7.9
Declining
208
9
27

Description

LEAF is a lightweight error handling library for C++11.

Official documentation: https://zajo.github.io/leaf/

Features:

Programming language: C++
License: Boost Software License 1.0
Tags: Miscellaneous     C++11     Error Handling    
Latest version: v1.75.0.beta1

leaf alternatives and similar libraries

Based on the "Miscellaneous" category.
Alternatively, view leaf alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of leaf or a related project?

Add another 'Miscellaneous' Library

README

LEAF

A lightweight error handling library for C++11.

Documentation

https://boostorg.github.io/leaf/

Features

  • Small single-header format, no dependencies.
  • Designed for maximum efficiency ("happy" path and "sad" path).
  • No dynamic memory allocations, even with heavy payloads.
  • O(1) transport of arbitrary error types (independent of call stack depth).
  • Can be used with or without exception handling.
  • Support for multi-thread programming.

Support

Distribution

Besides GitHub, there are two other distribution channels:

  • LEAF is included in official Boost releases, starting with Boost 1.75.
  • For maximum portability, the library is also available in single-header format: simply download leaf.hpp (direct download link).

Copyright (C) 2018-2021 Emil Dotchevski. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].


*Note that all licence references and agreements mentioned in the leaf README section above are relevant to that project's source code only.