https://github.com/boostorg/leaf
Lightweight Error Augmentation Framework
https://github.com/boostorg/leaf
cpp11 error-handling header-only low-latency multi-platform multi-threading no-dependencies single-header
Last synced: 5 months ago
JSON representation
Lightweight Error Augmentation Framework
- Host: GitHub
- URL: https://github.com/boostorg/leaf
- Owner: boostorg
- License: bsl-1.0
- Created: 2018-09-16T22:54:46.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-05-02T16:13:41.000Z (5 months ago)
- Last Synced: 2025-05-02T17:24:32.308Z (5 months ago)
- Topics: cpp11, error-handling, header-only, low-latency, multi-platform, multi-threading, no-dependencies, single-header
- Language: C++
- Homepage:
- Size: 15.6 MB
- Stars: 324
- Watchers: 10
- Forks: 50
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# 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
* [cpplang on Slack](https://Cpplang.slack.com) (use the `#boost` channel)
* [Boost Users Mailing List](https://lists.boost.org/mailman/listinfo.cgi/boost-users)
* [Boost Developers Mailing List](https://lists.boost.org/mailman/listinfo.cgi/boost)## Distribution
Besides GitHub, there are two other distribution channels:
* LEAF is included in official [Boost](https://www.boost.org/) releases, starting with Boost 1.75.
* For maximum portability, the library is also available in single-header format: [leaf.hpp](https://raw.githubusercontent.com/boostorg/leaf/gh-pages/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].