Need help with leaf?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

214 Stars 30 Forks Boost Software License 1.0 1.0K Commits 0 Opened issues


Lightweight Error Augmentation Framework

Services available


Need anything else?

Contributors list


A lightweight error handling library for C++11.



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



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[Boost Software License, Version 1.0].

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.