2
0
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:
Dave Abrahams
2002-11-26 02:47:17 +00:00
parent a7e19ffb0b
commit f9c8bf15bb
4 changed files with 27 additions and 23 deletions

View File

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