mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 18:12:43 +00:00
Restore CWPro7.2 to health. Also improve source organization slightly
[SVN r16416]
This commit is contained in:
@@ -12,25 +12,6 @@
|
||||
|
||||
namespace boost { namespace python { namespace converter {
|
||||
|
||||
PyObject* registration::to_python(void const volatile* source) const
|
||||
{
|
||||
if (this->m_to_python == 0)
|
||||
{
|
||||
handle<> msg(
|
||||
::PyString_FromFormat(
|
||||
"No to_python (by-value) converter found for C++ type: %s"
|
||||
, this->target_type.name()));
|
||||
|
||||
PyErr_SetObject(PyExc_TypeError, msg.get());
|
||||
|
||||
throw_error_already_set();
|
||||
}
|
||||
|
||||
return source == 0
|
||||
? incref(Py_None)
|
||||
: this->m_to_python(const_cast<void*>(source));
|
||||
}
|
||||
|
||||
namespace detail
|
||||
{
|
||||
arg_to_python_base::arg_to_python_base(
|
||||
|
||||
Reference in New Issue
Block a user