Skip to content

boostorg/leaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f4034fe · May 2, 2025
Sep 14, 2024
Feb 23, 2025
Sep 29, 2024
Sep 29, 2024
Sep 28, 2024
Sep 28, 2024
Feb 23, 2025
Nov 7, 2021
Jul 4, 2020
Apr 7, 2025
Sep 16, 2023
May 28, 2021
Sep 29, 2024
May 28, 2021
Dec 9, 2020
Sep 28, 2024
Apr 7, 2025
Dec 1, 2022
Aug 30, 2020
Sep 29, 2024
Sep 29, 2024
Sep 9, 2024

Repository files navigation

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, configurable 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: leaf.hpp.

Copyright 2018-2024 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].