2
0
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:
Dave Abrahams
2003-07-23 03:00:48 +00:00
parent af53ae8329
commit 77f5eb703c
2 changed files with 6 additions and 20 deletions

View File

@@ -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>