Skip to content

bazelboost/leaf

 
 

Repository files navigation

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 2018-2022 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].

About

Lightweight Error Augmentation Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.7%
  • Meson 1.6%
  • Python 1.0%
  • Jsonnet 1.0%
  • Shell 0.2%
  • Batchfile 0.2%
  • Other 0.3%