Lightweight Error Augmentation Framework
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Emil Dotchevski b7ed6273c1
Merge pull request #57 from boostorg/feature/issue56
Issue 56
1 month ago
.drone GHA & Drone updates 7 months ago
.github/workflows GHA update 1 month ago
.vscode Renamed meson bulid directory from bld to _bld 1 month ago
benchmark Removed BOOST_LEAF_NORETURN for [[noreturn]] 1 year ago
doc Documentation update 12 months ago
example Fixed warnings 1 year ago
gen Removed tabs 2 years ago
include/boost Improved noexcept in load_slot 1 month ago
meta Typo 2 years ago
subprojects Better meson.build, examples build with exception handling disabled, removed unnecessary meson options 3 years ago
test Much streamlined handling of diagnostics 1 month ago
.drone.jsonnet GHA & Drone updates 7 months ago
.gitattributes Add .gitattributes 2 years ago
.gitignore Renamed meson bulid directory from bld to _bld 1 month ago
CMakeLists.txt Regenerate CMakeLists.txt 2 years ago
LICENSE_1_0.txt Fixing bug on MSVC, unbalanced pragma push/pop. Improved leaf.hpp generation. 3 years ago
README.md Documentation update 2 years ago
conanfile.py [conan] Fix imports and license path 10 months ago
index.html boostorg compatibility changes 3 years ago
meson.build Much streamlined handling of diagnostics 1 month ago
meson_options.txt Removed #pragma system_header 2 years ago
wasm.txt Updated copyright note 2 years ago

README.md

LEAF

A lightweight error handling library for C++11.

Documentation

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

Features

  • Portable single-header format, no dependencies.
  • Tiny code size when configured for embedded development.
  • No dynamic memory allocations, even with very large payloads.
  • Deterministic unbiased efficiency on the "happy" path and the "sad" path.
  • Error objects are handled in constant time, independent of call stack depth.
  • Can be used with or without exception handling.

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].