2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

Implemented pure_virtual(...)

[SVN r19774]
This commit is contained in:
Dave Abrahams
2003-08-25 18:44:26 +00:00
parent 87c5e37f5e
commit 7ec78eecbd
5 changed files with 221 additions and 4 deletions

View File

@@ -627,7 +627,7 @@ handle<> function_handle_impl(py_function const& f)
new function(f, 0, 0)));
}
}
} // namespace objects
namespace detail
{
@@ -639,6 +639,11 @@ namespace detail
f
, keyword_range(&k,&k));
}
void BOOST_PYTHON_DECL pure_virtual_called()
{
PyErr_SetString(PyExc_RuntimeError, "Pure virtual function called");
throw_error_already_set();
}
}
}} // namespace boost::python::objects
}} // namespace boost::python