Emil Dotchevski
eb8d68c448
Replaced BOOST_TEST with BOOST_TEST_EQ, etc. where appropriate
2025-12-24 22:20:18 -05:00
Emil Dotchevski
56b247d71a
Significant refactoring:
...
- Support for error objects crossing DLL boundaries on Windows via BOOST_LEAF_CFG_WIN32=2.
- Internal TLS interface improvements, separating logical allocation from reading.
- Dynamic allocations (if enabled) for on_error objects now happens before stack unwinding begins.
- BOOST_LEAF_SYMBOL_VISIBLE declarations now separated in config/visibility.hpp.
2025-12-23 17:31:52 -05:00
Emil Dotchevski
0c7923933e
Improvements in single header distro. Build script tweaks.
2024-09-13 19:58:00 -07:00
Emil Dotchevski
d0047b721c
Updated copyright dates
2024-09-08 18:26:05 -07:00
Emil Dotchevski
ed8f9cd32f
Issue 70
2024-01-27 17:48:53 -08:00
Emil Dotchevski
971141db00
New dynamic capture system: try_capture_all. Previous API based on make_shared_contex/capture is deprecated.
2024-01-06 17:59:10 -08:00
Emil Dotchevski
971ecacf0f
dynamic_capture -> result<T>, a new way to hold and transport errors across threads. Legacy capture functionality removed.
2023-12-24 18:52:14 -08:00
Emil Dotchevski
c4977866bc
Public result<T>::value_type
2023-11-05 13:53:17 -08:00
Emil Dotchevski
351a563de0
Copyright message update
2023-09-15 11:11:13 -07:00
Emil Dotchevski
086786218a
Workaround for GCC 4.8 not handling C++11 ref qualifiers correctly; and BOOST_LEAF_CHECK using statement expressions under __GNUC__.
2022-01-30 15:29:40 -08:00
Emil Dotchevski
8d1285c2b5
Updated copyright note
2022-01-08 16:00:48 -08:00
Emil Dotchevski
f7392a7438
Renamed config macros, cleaned up config checks
2022-01-08 12:39:37 -08:00
Emil Dotchevski
394d6d7762
Support FreeRTOS ond for other TLS array APIs
2022-01-05 17:30:30 -08:00
Emil Dotchevski
996edca175
Support for BOOST_LEAF_EMBEDDED, removing all diagnostics support, std::string/std::stringstream
2022-01-03 12:00:56 -08:00
Emil Dotchevski
b67e4b5cd7
result::op* and op-> made noexcept
2021-12-25 14:08:35 -08:00
Emil Dotchevski
55ba6993cd
Implemented support for BOOST_LEAF_DISABLE_CAPTURE
2021-12-14 10:22:15 -08:00
Emil Dotchevski
74b580b88d
Deindented top level namespaces and updated copyright messages
2021-01-26 22:46:15 -08:00
Emil Dotchevski
43582bb44c
Generagitng leaf.hpp on GitHub Actions
2020-12-19 23:43:34 -08:00
Emil Dotchevski
fdff6508ce
Duplicated unit tests: testing each with single header and with individual headers
2020-12-09 00:26:59 -08:00
Emil Dotchevski
44eec77cf0
detab
2020-10-20 12:23:13 -07:00
Emil Dotchevski
022c168eaf
Added assignment test for initialization forwarding constructor of result<>
2020-07-09 13:00:23 -07:00
Emil Dotchevski
c455cd9fbf
Deleted catch/nocatch context types
2020-07-08 18:42:11 -07:00
Emil Dotchevski
692b866a46
result<T> constructor for any type U that can be used to initialize a T
2020-07-07 19:24:20 -07:00
Emil Dotchevski
4c3648e900
success, failure
2020-07-05 17:49:04 -07:00
Emil Dotchevski
9943f4e310
success()
2020-07-05 16:33:38 -07:00
Emil Dotchevski
99b5120852
Fixed bug in result<T &> support
2020-06-25 14:55:11 -07:00
Emil Dotchevski
7b5a7566d9
Better result<T &> support
2020-06-25 14:35:51 -07:00
Emil Dotchevski
27d440aea7
result<T &> support
2020-06-25 12:39:11 -07:00
Emil Dotchevski
b45915bd3b
Updated copyright messages
2020-06-10 11:24:09 -07:00
Emil Dotchevski
c2323f50dc
Removed exception handlinf member functions of the context class template
2020-01-01 18:41:48 -08:00
Emil Dotchevski
30cfe9fce1
Context activation/deactivation/propagation refactored.
2019-12-29 18:13:10 -08:00
Emil Dotchevski
960ce1c8f1
Better handling of calling .error() on a non-error result.
2019-11-24 18:42:35 -08:00
Emil Dotchevski
99b7adf759
Much better codegen from result<T>
2019-11-14 23:32:25 -08:00
Emil Dotchevski
f83c28e6ae
move-only result<T>
2019-11-12 21:05:40 -08:00
Emil Dotchevski
c57a7300cb
activate_context function template
2019-11-11 17:21:37 -08:00
Emil Dotchevski
ed91071382
Refactored context to not have any virtual functions
2019-11-11 14:02:41 -08:00
Emil Dotchevski
f0f8eca951
error_result not a base type
2019-11-09 09:51:44 -08:00
Emil Dotchevski
4b6110bb37
context_activator modified to avoid virtual function calls on context activation/deactivation
2019-11-04 12:04:02 -08:00
Emil Dotchevski
ae23e14472
Fixes, and tests for -fno-exceptions -fno-rtti
2019-10-31 18:09:47 -07:00
Emil Dotchevski
a6abe5ae54
result optimizations
2019-07-26 15:10:38 -07:00
Emil Dotchevski
0efc52e784
fixed bug in single header generation, changed copyright messages
2019-04-19 17:30:05 -07:00
Emil Dotchevski
0e65c833fd
added result<T>::operator-> and tests
2019-04-06 22:41:34 -07:00
Emil Dotchevski
cdfbde377f
Allowing .error() on a non-error result object
2019-03-16 13:04:40 -07:00
Emil Dotchevski
b8ca0aafc4
restoring better result move.
2019-02-24 15:27:26 -08:00
Emil Dotchevski
51c68b90fc
simpler result::move_from
2019-02-24 15:15:00 -08:00
Emil Dotchevski
c42bee4bfc
formatting changes, documentation update
2019-02-19 21:46:47 -08:00
Emil Dotchevski
70acb62f45
made error handling functions members of context<>
2019-02-13 22:32:04 -08:00
Emil Dotchevski
31bea1e42f
added tests, fixed minor bugs
2019-02-13 09:47:31 -08:00
Emil Dotchevski
2e1391195b
Documentation, some renamings
2019-02-11 22:10:04 -08:00
Emil Dotchevski
9b42608c41
deactivate_behavior -> on_deactivaton
2019-02-09 21:27:13 -08:00