Peter Dimov
bdf60d39d5
Avoid -Wundef warning
2024-01-06 17:05:58 +02:00
Peter Dimov
10e161cc56
Add -Wconversion et al to test/Jamfile
2023-06-25 16:05:24 +03:00
Matt Borland
d86a6220d5
Replace 0 with BOOST_NULLPTR
2022-07-13 07:50:58 -05:00
Paul Harris
f2b7655016
Change del.p_=0 to del.p_=nullptr ( #22 )
...
* Change del.p_=0 to del.p_=nullptr
A simple change (I hope) that cleans up compiler warnings and errors.
* Support older compilers
* Update throw_exception.hpp
* Update throw_exception.hpp
2022-06-09 15:54:12 +03:00
Peter Dimov
26f3ce3c5c
Add throw_column to boost::exception, make get_throw_location work for it
2022-02-16 13:45:54 +02:00
Peter Dimov
cffa8cd68c
Add a test for throw_with_location with RTTI off
2022-02-15 00:59:05 +02:00
Peter Dimov
c5dfcc3dd4
Add boost::throw_with_location
2022-02-10 20:02:30 +02:00
Ion Gaztañaga
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
Peter Dimov
9ca27bddfc
Make clone_impl::rethrow use boost::throw_exception when exceptions are disabled
2021-09-30 21:24:13 +03:00
Peter Dimov
f3b43b5679
Define boost::wrapexcept when BOOST_NO_EXCEPTIONS is defined, to enable boost::make_exception_ptr
2020-12-20 02:03:11 +02:00
Pavel A. Lebedev
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
Peter Dimov
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
Peter Dimov
37f7c5fd30
Add BOOST_OVERRIDE to clone() and rethrow()
2020-04-14 00:41:54 +03:00
Edward Diener
a9ea585926
Merge branch 'develop' of https://github.com/eldiener/throw_exception into cppbuilder
2020-04-08 12:53:23 -04:00
Emil Dotchevski
548084bd4c
Added #pragma clang system_header
2020-04-06 18:15:35 -07:00
Edward Diener
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
Peter Dimov
36f998f9b2
Update include guard
2019-12-21 17:55:39 +02:00
Peter Dimov
bc6f095b3d
Fix include guards
2019-12-17 19:49:27 +02:00
Peter Dimov
26bc9374e2
No need to deep-copy the boost::exception base
2019-11-30 22:42:43 +02:00
Peter Dimov
a2a78f6e46
Test (and fix) error info with virtual inheritance from boost::exception
2019-11-30 21:51:32 +02:00
Peter Dimov
ea9bd58f8c
Remove inline from throw_exception
2019-11-26 19:10:57 +02:00
Peter Dimov
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
Emil Dotchevski
43a57d518c
msvc warning workaround, thanks bersbersbers
2019-10-15 13:36:12 -07:00
Emil Dotchevski
5143552817
throw() -> BOOST_NOEXCEPT_OR_NOTHROW
2019-06-06 15:33:45 -07:00
Peter Dimov
1e507924ce
Mark throw_exception with BOOST_NORETURN. Closes #12 .
2019-06-03 03:06:40 +03:00
Peter Dimov
322d7611af
Use boost::wrapexcept<E> as the thrown exception type
2018-09-27 08:13:59 +03:00
Peter Dimov
56dd1c4111
Add/use exception_detail::enable_both
2018-09-27 07:39:18 +03:00
Peter Dimov
c807ae9201
Merge branch 'fix-c4668' of https://github.com/pkolbus/throw_exception into feature/pr-7
2018-09-27 06:27:32 +03:00
Peter Dimov
fe0f62bf17
Move BOOST_SYMBOL_VISIBLE after class
2018-09-27 00:53:52 +03:00
Peter Dimov
4714760035
Merge branch 'develop' of https://github.com/epvbergen/throw_exception into feature/symbol-visible
2018-09-27 00:52:07 +03:00
Nikita Kniazev
7e2f1b4ecd
Removed extra semicolon
2018-09-26 15:28:19 +03:00
van Bergen Emile
8b879067f7
Replaced hardcoded symbol visibility for GCC with BOOST_SYMBOL_VISIBLE
2018-09-25 10:40:26 +02:00
Peter Kolbus
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
Peter Kolbus
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
Emil Dotchevski
56d65d5f62
#including config.hpp before other headers.
2017-02-20 17:49:33 -08:00
Paul Groke
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
Emil Dotchevski
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
Emil Dotchevski
fa2195c268
rvalue support in error_info
2015-03-24 15:35:56 -07:00
Andrey Semashev
37e726da58
Remove BOOST_ATTRIBUTE_NORETURN and use BOOST_NORETURN provided by Boost.Config instead.
2014-06-05 00:44:39 +04:00
Emil Dotchevski
ee1aa005fd
N3757
...
[SVN r85538]
2014-06-03 02:37:08 +03:00
Emil Dotchevski
6a42b70891
Merging recent changes from trunk.
...
[SVN r85636]
2014-06-03 01:57:06 +03:00
Emil Dotchevski
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
Emil Dotchevski
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
Emil Dotchevski
abec03383f
Merging minor tested bugfixes from trunk.
...
[SVN r77592]
2014-06-03 01:57:05 +03:00
Emil Dotchevski
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
Emil Dotchevski
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
Daniel James
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
Emil Dotchevski
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
Emil Dotchevski
a2b07f059c
Ticket #4344
...
[SVN r67128]
2014-06-03 01:57:03 +03:00
Emil Dotchevski
173fa9c41e
merging changes from trunk.
...
[SVN r63565]
2014-06-03 01:57:02 +03:00