2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-01 08:32:14 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
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
Emil Dotchevski
0e5f26466c propagation_behavior 2019-02-09 21:00:49 -08:00
Emil Dotchevski
adc5384589 rewrite complete, all tests working 2019-02-09 18:53:30 -08:00
Emil Dotchevski
96c3d0a8eb temp commit 2019-02-08 23:05:36 -08:00
Emil Dotchevski
9dc430180b added different error_ types, converted capture_in_result/capture_in_exception to call the passed function, rather than return a function that calls it 2019-01-30 17:11:53 -08:00
Emil Dotchevski
d13dc40a52 better capture_in_result/capture_in_exception interface
als is_error_type -> is_e_type.
2019-01-28 16:24:49 -08:00
Emil Dotchevski
c4b4d8bd15 separated handle.hpp into handle_all.hpp and handle_some.hpp 2019-01-26 17:48:59 -08:00
Emil Dotchevski
4e45151020 capture_result->capture_in_result, capture_exception->capture_in_exception 2019-01-25 14:13:59 -08:00
Emil Dotchevski
e45cb511c5 BOOST_TEST->BOOST_TEST_EQ 2019-01-25 10:13:23 -08:00
Emil Dotchevski
e1a8db14b9 updated copyright message 2019-01-23 23:30:02 -08:00
Emil Dotchevski
01135e4e19 ditched failed<> 2019-01-23 23:27:35 -08:00
Emil Dotchevski
0f9d649b83 match/catch_ refactored 2019-01-23 19:51:36 -08:00
Emil Dotchevski
71d5440879 class error renamed back to error_id 2019-01-22 15:16:21 -08:00
Emil Dotchevski
7708a3d5e0 refactored error_id to error: std::error_code 2019-01-22 12:39:04 -08:00
Emil Dotchevski
0c9081f6f3 failed<R> 2019-01-20 19:25:09 -08:00
Emil Dotchevski
3f9d1821dd renamed types and variable 2019-01-15 11:28:17 -08:00
Emil Dotchevski
ff6f7716cd error -> error_id 2019-01-15 00:36:44 -08:00
Emil Dotchevski
fee3868261 documentation, cosmetic changes 2019-01-13 09:13:54 -08:00
Emil Dotchevski
f11e3b248e diagnostic info refactor 2019-01-10 20:51:26 -08:00
Emil Dotchevski
a16600a989 error constructor -> new_error 2019-01-10 09:29:48 -08:00
Emil Dotchevski
a88d950045 Complete rewrite to try_, handle_some, handle_all 2019-01-09 17:30:31 -08:00