65eddbb2f0
Small fix for those using -Wsign-conversion ( #21 )
...
* Small fix for those using -Wsign-conversion
* Change I to std::size_t in wrapexcept_add_base
A better fix for -Wsign-conversion
2021-10-11 21:07:06 +03:00
9ca27bddfc
Make clone_impl::rethrow use boost::throw_exception when exceptions are disabled
2021-09-30 21:24:13 +03:00
f3b43b5679
Define boost::wrapexcept when BOOST_NO_EXCEPTIONS is defined, to enable boost::make_exception_ptr
2020-12-20 02:03:11 +02:00
3144a406d4
Define boost::wrapexcept even when BOOST_EXCEPTION_DISABLE is defined.
...
Since Boost.Exception started using boost::wrapexcept in implementation
of boost::exception_ptr, we need to define it even when
BOOST_EXCEPTION_DISABLE is defined, otherwise it won't compile:
$ clang++ -DBOOST_EXCEPTION_DISABLE -w -x c++ \
/usr/include/boost/exception_ptr.hpp -fsyntax-only
In file included from /usr/include/boost/exception_ptr.hpp:9:
/usr/include/boost/exception/detail/exception_ptr.hpp:87:49: error: use of
undeclared identifier 'wrapexcept'
return exception_ptr(boost::make_shared<wrapexcept<E> >(cp));
^
1 error generated.
2020-12-18 01:45:19 +03:00
924eb33335
Merge pull request #16 from eldiener/develop
...
Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74
2020-05-06 16:35:30 +03:00
37f7c5fd30
Add BOOST_OVERRIDE to clone() and rethrow()
2020-04-14 00:41:54 +03:00
a9ea585926
Merge branch 'develop' of https://github.com/eldiener/throw_exception into cppbuilder
2020-04-08 12:53:23 -04:00
548084bd4c
Added #pragma clang system_header
2020-04-06 18:15:35 -07:00
237c7a35d6
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-03-23 14:35:01 -04:00
36f998f9b2
Update include guard
2019-12-21 17:55:39 +02:00
bc6f095b3d
Fix include guards
2019-12-17 19:49:27 +02:00
26bc9374e2
No need to deep-copy the boost::exception base
2019-11-30 22:42:43 +02:00
a2a78f6e46
Test (and fix) error info with virtual inheritance from boost::exception
2019-11-30 21:51:32 +02:00
ea9bd58f8c
Remove inline
from throw_exception
2019-11-26 19:10:57 +02:00
dad5cb4ed3
Add boost::throw_exception overload taking a boost::source_location; use it in BOOST_THROW_EXCEPTION
2019-11-25 19:17:47 +02:00
43a57d518c
msvc warning workaround, thanks bersbersbers
2019-10-15 13:36:12 -07:00
5143552817
throw() -> BOOST_NOEXCEPT_OR_NOTHROW
2019-06-06 15:33:45 -07:00
1e507924ce
Mark throw_exception with BOOST_NORETURN. Closes #12 .
2019-06-03 03:06:40 +03:00
322d7611af
Use boost::wrapexcept<E> as the thrown exception type
2018-09-27 08:13:59 +03:00
56dd1c4111
Add/use exception_detail::enable_both
2018-09-27 07:39:18 +03:00
c807ae9201
Merge branch 'fix-c4668' of https://github.com/pkolbus/throw_exception into feature/pr-7
2018-09-27 06:27:32 +03:00
fe0f62bf17
Move BOOST_SYMBOL_VISIBLE after class
2018-09-27 00:53:52 +03:00
4714760035
Merge branch 'develop' of https://github.com/epvbergen/throw_exception into feature/symbol-visible
2018-09-27 00:52:07 +03:00
7e2f1b4ecd
Removed extra semicolon
2018-09-26 15:28:19 +03:00
8b879067f7
Replaced hardcoded symbol visibility for GCC with BOOST_SYMBOL_VISIBLE
2018-09-25 10:40:26 +02:00
f796dd892a
Fix MSVC C4668 in exception.hpp
...
Fix MSVC C4668 warnings (undefined preprocessor macro) for __GNUC__ and __GNUC_MINOR__ by checking if __GNUC__ is defined first.
2018-03-26 22:39:26 -05:00
f5022b5ca8
Fix MSVC C4668 in throw_exception.hpp
...
Fix MSVC C4668 warnings (undefined preprocessor macro) for __GNUC__ and __GNUC_MINOR__ by checking if __GNUC__ is defined first.
2018-03-26 22:38:33 -05:00
56d65d5f62
#including config.hpp before other headers.
2017-02-20 17:49:33 -08:00
cce19ef60f
Don't include stuff inside #pragma warning push/pop, include boost/config.hpp before testing BOOST_ macros.
2017-02-15 13:18:06 +01:00
f94638e522
Configuration option to allow Boost Exception to use std::shared_ptr instead of boost::shared_ptr.
2016-09-28 17:01:26 -07:00
fa2195c268
rvalue support in error_info
2015-03-24 15:35:56 -07:00
37e726da58
Remove BOOST_ATTRIBUTE_NORETURN and use BOOST_NORETURN provided by Boost.Config instead.
2014-06-05 00:44:39 +04:00
ee1aa005fd
N3757
...
[SVN r85538]
2014-06-03 02:37:08 +03:00
6a42b70891
Merging recent changes from trunk.
...
[SVN r85636]
2014-06-03 01:57:06 +03:00
d0bbcab566
Merging long-standing changes from Trunk, including the slightly more sophisticated handling of the to_string conversion done in boost::diagnostic_information.
...
[SVN r83354]
2014-06-03 01:57:06 +03:00
9b26d9a9cc
Merged changes from trunk: dealing with warnings, and a compile error on Win CE.
...
[SVN r79026]
2014-06-03 01:57:05 +03:00
abec03383f
Merging minor tested bugfixes from trunk.
...
[SVN r77592]
2014-06-03 01:57:05 +03:00
3558cf31c5
Fixing a build glitch in the non-intrusive exception_ptr support (Authorized by Eric)
...
[SVN r72995]
2014-06-03 01:57:04 +03:00
3655e4c64b
Committing changes merged from trunk, most notably optional non-intrusive exception_ptr support for MSVC.
...
[SVN r70974]
2014-06-03 01:57:04 +03:00
a75cde2ce1
Revert r69620.
...
It's breaking the tests and probably isn't appropriate for a bug fix release.
[SVN r69816]
2014-06-03 01:57:04 +03:00
3c5efe3c3b
Committing changes merged from trunk, most notably optional non-intrusive exception_ptr support for MSVC.
...
[SVN r69620]
2014-06-03 01:57:03 +03:00
a2b07f059c
Ticket #4344
...
[SVN r67128]
2014-06-03 01:57:03 +03:00
173fa9c41e
merging changes from trunk.
...
[SVN r63565]
2014-06-03 01:57:02 +03:00
a53446874b
updating from trunk.
...
[SVN r60338]
2014-06-03 01:57:02 +03:00
89e6b4ef35
minor BOOST_THROW_EXCEPTION fix.
...
[SVN r58499]
2014-06-03 01:57:01 +03:00
fed2b48aa9
Merging changes from trunk.
...
[SVN r58421]
2014-06-03 01:57:01 +03:00
bee54c1aee
Bug ticket 3641, also merging other fixes from Trunk.
...
[SVN r57764]
2014-06-03 01:57:01 +03:00
c920a49ab3
Fixing a comment error and adding a trivial protected destructor.
...
[SVN r57379]
2014-06-03 01:57:00 +03:00
2af84878d2
Merging from trunk: new function diagnostic_information_what, and mutable error info access.
...
[SVN r56477]
2014-06-03 01:56:59 +03:00
a92ed0a337
Merging in changes trunk updates: adding standard error_info typedefs, updating the documentation.
...
[SVN r55094]
2014-06-03 01:56:59 +03:00