2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-30 20:02:15 +00:00
Commit Graph

310 Commits

Author SHA1 Message Date
Emil Dotchevski
420022600e Unit test to verify correct assignment of new error_id 2020-11-24 15:22:49 -08:00
Emil Dotchevski
8e44c206ef Better handling of handlers accessing the std::error_code stored in std::system_error. 2020-11-23 19:57:46 -08:00
Emil Dotchevski
a48880368f Improved unit test 2020-11-23 16:40:56 -08:00
Emil Dotchevski
ef92aaacd9 match<condition<>> working with std::system_error exceptions as well 2020-11-22 21:17:10 -08:00
Emil Dotchevski
f9bb01572f Added unit tests for pull request 15 2020-11-21 16:51:02 -08:00
Edward Diener
10e0559525 Add __clang__ with __gnuc__ since there are implementations of clang, ie. Embarcadero and Intel C++ on Windows, which do not use gcc. 2020-11-02 19:25:26 -05:00
Emil Dotchevski
7b2ce7a9f9 GCC49 workaround for BOOST_LEAF_ASSIGN_test and BOOST_LEAF_AUTO_test 2020-10-26 12:53:11 -07:00
Emil Dotchevski
e8f1541db5 Workarounds for old GCC and CLANG compilers 2020-10-25 19:09:33 -07:00
Emil Dotchevski
82811b0998 Fixing compile error in BOOST_LEAF_AUTO_test and BOOST_LEAF_ASSIGN_test. 2020-10-25 11:49:45 -07:00
Emil Dotchevski
d527720f4d Added &, &&, & const, && const overloads result::value and result::operator* 2020-10-24 18:42:55 -07:00
Emil Dotchevski
446098fd8a Trimmed down standard includes:
- no longer including <ostream>, using <iosfwd> instead
- under BOOST_LEAF_DIAGNOSTICS=0, no longer including <set> and <sstream>
2020-10-20 17:52:33 -07:00
Emil Dotchevski
44eec77cf0 detab 2020-10-20 12:23:13 -07:00
zajo
c87a80daeb Minor tweak to diagnostic information 2020-09-03 22:33:43 -07:00
Emil Dotchevski
d829b48078 Removed incorrect constexpr from result<T> 2020-09-02 15:05:34 -07:00
Emil Dotchevski
6fa94b5aa3 Fixed bug in detection of std::uncaught_exceptions 2020-08-30 22:16:52 -07:00
Emil Dotchevski
c233dd5133 Renamed boost/leaf/all.hpp to boost/leaf.hpp 2020-08-30 17:41:12 -07:00
Emil Dotchevski
04b6d57d45 Fixed minor issues due to differences between C++17 and C++11 2020-08-30 16:46:13 -07:00
Emil Dotchevski
a5058d930b Renamed custom b2 variants for testing with BOOST_LEAF_DIAGNOSTICS=0 2020-08-30 14:35:27 -07:00
Emil Dotchevski
e4e8154e30 boostorg compatibility changes 2020-08-30 13:36:58 -07:00
Emil Dotchevski
db9e360a07 Moved config.hpp to detail/config.hpp 2020-07-18 17:29:41 -07:00
Emil Dotchevski
022c168eaf Added assignment test for initialization forwarding constructor of result<> 2020-07-09 13:00:23 -07:00
unknown
20ff25fee5 Removed redundant "using namespace", added try_catch under BOOST_LEAF_NO_EXCEPTIONS 2020-07-09 05:31:56 -07:00
unknown
e4b513dae9 deleted handler_argument_traits.hpp, moved contents to context.hpp 2020-07-08 23:07:32 -07:00
unknown
2dcbf01bcd Removed requires_catch 2020-07-08 21:50:11 -07:00
Emil Dotchevski
fa9f5af06e Improved tests for try_handle_some/all mixed use with exceptions 2020-07-08 19:16:29 -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
ae08413380 BOOST_LEAF_VAR renamed to BOOST_LEAF_ASSIGN 2020-07-06 12:22:26 -07:00
Emil Dotchevski
6a1b812d03 removed success/failure functions, plus more complete error_code_test 2020-07-06 12:20:08 -07:00
Emil Dotchevski
d164364b5e success, failure tests 2020-07-05 19:52:24 -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
efa9895b1d BOOST_LEAF_NORETURN 2020-07-04 19:14:29 -07:00
Emil Dotchevski
b61b304fab Better meson.build, examples build with exception handling disabled, removed unnecessary meson options 2020-07-04 15:55:09 -07:00
Emil Dotchevski
99a4082226 catch_ turned into proper predicate 2020-07-04 12:13:41 -07:00
Emil Dotchevski
6235586f99 is_predicate private 2020-07-04 09:37:02 -07:00
Emil Dotchevski
b0d857715d BOOST_LEAF_STANDALONE 2020-07-03 23:12:08 -07:00
Emil Dotchevski
019ef479ef is_predicate 2020-07-03 20:28:19 -07:00
Emil Dotchevski
8dc8a1314d Better organization for handler_angument_traits of diagnostic_info and verbose_diagnostic_info 2020-07-03 16:31:16 -07:00
Emil Dotchevski
6ae565d272 Better boost::exception integration 2020-07-03 16:08:33 -07:00
Emil Dotchevski
ba4ad52e2e Better BOOST_LEAF_AUTO and BOOST_LEAF_VAR tests 2020-07-03 15:23:21 -07:00
Emil Dotchevski
1f7524ce7d BOOST_LEAF_VAR_test and BOOST_LEAF_AUTO_test 2020-07-03 14:52:32 -07:00
Emil Dotchevski
6ebf29a902 Even simpler predicate implementation 2020-07-03 13:49:31 -07:00
Emil Dotchevski
b4e3328cbf Deleted match_if, function pointers can be passed to match now. 2020-07-02 20:34:31 -07:00
Emil Dotchevski
042c250a35 if_not 2020-07-02 15:40:34 -07:00
Emil Dotchevski
f579047db8 match_if 2020-07-01 22:53:25 -07:00
Emil Dotchevski
33bf59237b Much simpler implementation of predicates 2020-07-01 21:07:20 -07:00
Emil Dotchevski
1cb480e2e2 Better compile errors for bad predicates 2020-06-30 20:19:22 -07:00
Emil Dotchevski
c21b0eaf71 Fixed context deactivation bug, improved type safety for match<>, match_value<>, match_member<> 2020-06-30 16:47:56 -07:00
Emil Dotchevski
9a3da94387 Renamed catch_::caught to catch_::matched 2020-06-30 14:57:31 -07:00