mirror of
https://github.com/boostorg/python.git
synced 2026-01-26 18:52:26 +00:00
Attempt to work around a GCC EH problem by sticking a virtual function
in error_already_set and defining it in the library. Removed some flotsam [SVN r19274]
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
|
||||
namespace boost { namespace python {
|
||||
|
||||
struct BOOST_PYTHON_DECL error_already_set {};
|
||||
struct BOOST_PYTHON_DECL argument_error : error_already_set {};
|
||||
struct BOOST_PYTHON_DECL error_already_set
|
||||
{
|
||||
virtual ~error_already_set();
|
||||
};
|
||||
|
||||
// Handles exceptions caught just before returning to Python code.
|
||||
// Returns true iff an exception was caught.
|
||||
@@ -34,7 +36,6 @@ inline void handle_exception()
|
||||
handle_exception(detail::rethrow);
|
||||
}
|
||||
|
||||
BOOST_PYTHON_DECL void throw_argument_error();
|
||||
BOOST_PYTHON_DECL void throw_error_already_set();
|
||||
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user