A lightweight error handling library for C++11.
https://boostorg.github.io/leaf/
#boost channel)Besides GitHub, there are two other distribution channels:
Copyright 2018-2025 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].
<h1>LEAF</h1> <blockquote> <p>A lightweight error handling library for C++11.</p> </blockquote> <h2>Documentation</h2> <p>https://boostorg.github.io/leaf/</p> <h2>Features</h2> <ul> <li>Portable single-header format, no dependencies.</li> <li>Tiny code size, configurable for embedded development.</li> <li>No dynamic memory allocations, even with very large payloads.</li> <li>Deterministic unbiased efficiency on the "happy" path and the "sad" path.</li> <li>Error objects are handled in constant time, independent of call stack depth.</li> <li>Can be used with or without exception handling.</li> </ul> <h2>Support</h2> <ul> <li><a href="https://Cpplang.slack.com">cpplang on Slack</a> (use the <code>#boost</code> channel)</li> <li><a href="https://lists.boost.org/mailman/listinfo.cgi/boost-users">Boost Users Mailing List</a></li> <li><a href="https://lists.boost.org/mailman/listinfo.cgi/boost">Boost Developers Mailing List</a></li> </ul> <h2>Distribution</h2> <p>Besides GitHub, there are two other distribution channels:</p> <ul> <li>LEAF is included in official <a href="https://www.boost.org/">Boost</a> releases, starting with Boost 1.75.</li> <li>For maximum portability, the library is also available in single-header format: <a href="https://raw.githubusercontent.com/boostorg/leaf/gh-pages/leaf.hpp">leaf.hpp</a>.</li> </ul> <p>Copyright 2018-2025 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].</p>
<h1>LEAF</h1> <blockquote> <p>A lightweight error handling library for C++11.</p> </blockquote> <h2>Documentation</h2> <p>https://boostorg.github.io/leaf/</p> <h2>Features</h2> <ul> <li>Portable single-header format, no dependencies.</li> <li>Tiny code size, configurable for embedded development.</li> <li>No dynamic memory allocations, even with very large payloads.</li> <li>Deterministic unbiased efficiency on the "happy" path and the "sad" path.</li> <li>Error objects are handled in constant time, independent of call stack depth.</li> <li>Can be used with or without exception handling.</li> </ul> <h2>Support</h2> <ul> <li><a href="https://Cpplang.slack.com">cpplang on Slack</a> (use the <code>#boost</code> channel)</li> <li><a href="https://lists.boost.org/mailman/listinfo.cgi/boost-users">Boost Users Mailing List</a></li> <li><a href="https://lists.boost.org/mailman/listinfo.cgi/boost">Boost Developers Mailing List</a></li> </ul> <h2>Distribution</h2> <p>Besides GitHub, there are two other distribution channels:</p> <ul> <li>LEAF is included in official <a href="https://www.boost.org/">Boost</a> releases, starting with Boost 1.75.</li> <li>For maximum portability, the library is also available in single-header format: <a href="https://raw.githubusercontent.com/boostorg/leaf/gh-pages/leaf.hpp">leaf.hpp</a>.</li> </ul> <p>Copyright 2018-2025 Emil Dotchevski and Reverge Studios, Inc. Distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0].</p>