Boost
Libraries
arrow_drop_down
Boost.Leaf
M
D
Commits Per Release404030302020101000038183234106503012243961.75.01.75.01.76.01.76.01.77.01.77.01.78.01.78.01.79.01.79.01.80.01.80.01.81.01.81.01.82.01.82.01.83.01.83.01.84.01.84.01.85.01.85.01.86.01.86.01.87.01.87.01.88.01.88.0

This Release

Emil Dotchevski
Emil Dotchevski
Author

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