2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-03 09:12:18 +00:00
Commit Graph

534 Commits

Author SHA1 Message Date
Emil Dotchevski
06a7779699 New unit tests and fix for issuo 26 2021-07-10 10:14:22 -07:00
Emil Dotchevski
e94dab00f8 Issue 25 2021-07-09 23:02:10 -07:00
Emil Dotchevski
c5f2dcf547 East const 2021-04-02 11:14:30 -07:00
jl
2b192d2af6 handler tuples can be const 2021-03-25 17:45:06 +01:00
Emil Dotchevski
dcbccf0335 Fully qualified internal call in BOOST_LEAF_NEW_ERROR, thanks @museghost 2021-02-28 13:00:33 -08:00
Emil Dotchevski
0a665fbbc3 BOOST_LEAF_SYMBOL_VISIBLE 2021-02-11 17:13:19 -08:00
Emil Dotchevski
294728e5b5 Fixing bug in e_LastError, adding unit tests 2021-02-10 18:35:46 -08:00
Emil Dotchevski
9dce7d4135 Formatting change 2021-01-28 23:19:43 -08:00
Emil Dotchevski
74b580b88d Deindented top level namespaces and updated copyright messages 2021-01-26 22:46:15 -08:00
Emil Dotchevski
25f2a50b25 Added support for throwing exceptions associated with an existing error_id, and refactored the Lua example to not throw through the Lua interpreter. Updated the documentation. 2021-01-25 21:04:24 -08:00
Emil Dotchevski
167d965e85 Fixing a bug in demangle.hpp 2021-01-15 16:33:06 -08:00
Emil Dotchevski
bd46318d85 Printing std::exception::what even when the exception isn't caught explicitly 2021-01-08 11:39:22 -08:00
Emil Dotchevski
43582bb44c Generagitng leaf.hpp on GitHub Actions 2020-12-19 23:43:34 -08:00
Emil Dotchevski
4a11277356 Added compile-fail tests for static_asserts in BOOST_LEAF_AUTO and BOOST_LEAF_ASSIGN 2020-12-09 14:34:35 -08:00
Emil Dotchevski
20f0073110 Removed redundant blank line in leaf.hpp 2020-12-08 23:34:37 -08:00
Emil Dotchevski
6cd4ccc605 Fixing bug on MSVC, unbalanced pragma push/pop. Improved leaf.hpp generation. 2020-12-08 23:32:01 -08:00
Emil Dotchevski
b88ecf9040 Fixing Issue # 18 2020-12-08 18:28:00 -08:00
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