2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-01 08:32:14 +00:00
Files
leaf/include
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
..