2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-31 20:22:15 +00:00
vector-of-bool efc56d1c70 Conditionally unpack an error_id from a thrown system_error
Previously, if a std::system_error was caught and passed to
unpack_error_id, then the 'exc.code()' would be unconditionally
converted to an error_id, even if the code did not correspond
to an actual error_id value. This effectively prevents reliable
use of std::system_error as an exception type.

This tweaks to only consider the system_error to be an error_id
if the code() of that error matches is_error_id().
2020-11-20 22:21:33 -07:00
2020-07-18 17:22:29 -07:00
2020-10-20 12:23:13 -07:00
2020-10-20 12:23:13 -07:00
2020-08-30 13:36:58 -07:00
2020-08-30 13:36:58 -07:00
2020-10-20 18:00:50 -07:00
2019-07-18 09:26:58 +01:00
2020-08-30 13:36:58 -07:00
2019-07-17 14:07:27 +01:00
2020-08-30 13:36:58 -07:00

Boost LEAF is a lightweight error handling library for C++11.

Official documentation: https://boostorg.github.io/leaf/

Features:

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

Support is available via:

Copyright (c) 2018-2020 Emil Dotchevski and Reverge Studios, Inc.

Distributed under the Boost Software License, Version 1.0.

Description
Mirrored via gitea-mirror
Readme 20 MiB
Languages
C++ 96.9%
Meson 1.5%
Python 1.2%
Shell 0.2%
Batchfile 0.1%