mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 07:02:15 +00:00
Further rationalized conversion registry
[SVN r14441]
This commit is contained in:
@@ -47,7 +47,7 @@ namespace detail
|
||||
|
||||
BOOST_PYTHON_DECL void* callback_convert_reference(
|
||||
PyObject* source
|
||||
, from_python_registration const& converters)
|
||||
, registration const& converters)
|
||||
{
|
||||
handle<> holder(source);
|
||||
if (source->ob_refcnt <= 2)
|
||||
@@ -76,7 +76,7 @@ namespace detail
|
||||
|
||||
BOOST_PYTHON_DECL void* callback_convert_pointer(
|
||||
PyObject* source
|
||||
, from_python_registration const& converters)
|
||||
, registration const& converters)
|
||||
{
|
||||
if (source == Py_None)
|
||||
{
|
||||
@@ -98,9 +98,9 @@ namespace detail
|
||||
{
|
||||
handle<> holder(src);
|
||||
|
||||
void const* registration = data.convertible;
|
||||
void const* converters = data.convertible;
|
||||
data = rvalue_from_python_stage1(
|
||||
src, *static_cast<from_python_registration const*>(registration));
|
||||
src, *static_cast<registration const*>(converters));
|
||||
|
||||
if (!data.convertible)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user