Emil Dotchevski
e9eb0323c5
Issue #16
2020-12-08 14:36:26 -08:00
Emil Dotchevski
b90ddd5253
Issue #17
2020-12-08 13:35:52 -08:00
Emil Dotchevski
ed3683a8ce
Uniform wrapping for multi-line comments
2020-12-06 23:42:50 -08:00
Emil Dotchevski
bb3ec97c9b
Handling of std::error_code as well as std::system_error in peek_exception
2020-11-23 21:39:28 -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
2280f3f5cd
Removed const_cast from std::system_error::code() access
2020-11-23 15:53:35 -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
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
Emil Dotchevski
dee275c1a7
Formatting
2020-10-25 15:13:47 -07:00
Emil Dotchevski
1e8c6c7d28
BOOST_LEAF_CHECK using a generated temporary as well
2020-10-24 21:26:18 -07:00
Emil Dotchevski
d527720f4d
Added &, &&, & const, && const overloads result::value and result::operator*
2020-10-24 18:42:55 -07:00
Emil Dotchevski
7563674fd8
Adding required include <string> to implement std::error_category
2020-10-20 18:34:33 -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
d5c22966c5
Merge branch 'develop' of https://github.com/boostorg/leaf into develop
2020-09-13 16:55:22 -07:00
zajo
02d0b85122
Renamed leaf.hpp include guard
2020-09-13 16:54:41 -07:00
Emil Dotchevski
7e4941ac3b
Merge branch 'develop' of https://github.com/zajo/leaf into develop
2020-09-06 18:02:47 -07:00
Emil Dotchevski
dcb359b2bc
Made leaf_category final
2020-09-06 17:55:40 -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
f8c8a1d566
travis
2020-08-31 03:05:37 -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
c886cb10ee
Bugfix: the verbose_diagnostic_info output used to show some error types as references
2020-08-27 17:24:37 -07:00
Emil Dotchevski
db9e360a07
Moved config.hpp to detail/config.hpp
2020-07-18 17:29:41 -07:00
unknown
fa5444dc20
Merge branch 'develop' of https://github.com/zajo/leaf into develop
2020-07-18 17:22:40 -07:00
unknown
6eaab3124c
Minor msvc fixes
2020-07-18 17:22:29 -07:00
Emil Dotchevski
54ca581706
Updating all.hpp
2020-07-17 19:48:43 -07:00
Emil Dotchevski
cacab39b61
Minor tweaks
2020-07-17 19:47:52 -07:00
Emil Dotchevski
1fdd8654fe
Correct handling of #pragma system_header
2020-07-09 23:53:56 -07:00
unknown
ee1c01e26e
Workaround for TOOLSET=clang COMPILER=/usr/bin/clang++ CXXSTD=11 clang-3.3
2020-07-09 10:34:28 -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
3ad53bf1d6
Missing #ifdef BOOST_LEAF_NO_EXCEPTIONS
2020-07-09 02:48:09 -07:00
unknown
e130570fc5
Made try_handle_some/all noexcept under -fno-exceptions
2020-07-08 23:57:38 -07:00
unknown
d0f78af498
Moved throw_exception in error.hpp
2020-07-08 23:28:21 -07:00
unknown
e4b513dae9
deleted handler_argument_traits.hpp, moved contents to context.hpp
2020-07-08 23:07:32 -07:00
unknown
061da7e810
Made context::try_catch_ a namespace-scope function
2020-07-08 22:52:15 -07:00
unknown
6eb228eb4e
Merged exception/noexception error handling into one file
2020-07-08 22:42:23 -07:00
unknown
da85dbc202
Deleted leaf_detail::exception_info_
2020-07-08 22:15:55 -07:00
unknown
d2cafd59d6
deleted exception_info_base
2020-07-08 21:57:34 -07:00
unknown
2dcbf01bcd
Removed requires_catch
2020-07-08 21:50:11 -07:00
Emil Dotchevski
c455cd9fbf
Deleted catch/nocatch context types
2020-07-08 18:42:11 -07:00
unknown
c67a2dfe33
Using std::is_constructible for SFINAE
2020-07-08 10:16:52 -07:00
unknown
7a6c8863ca
msvc workaround for U->T constructor
2020-07-07 21:59:06 -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