2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

implicit conversions

[SVN r13277]
This commit is contained in:
Dave Abrahams
2002-03-26 06:38:41 +00:00
parent 11bd4c3223
commit ac34e0e108
9 changed files with 183 additions and 1 deletions

View File

@@ -29,6 +29,18 @@ BOOST_PYTHON_DECL rvalue_stage1_data find(
return data;
}
BOOST_PYTHON_DECL rvalue_from_python_registration const* find_chain(
PyObject* source
, rvalue_from_python_registration const* chain)
{
for (;chain != 0; chain = chain->next)
{
if (chain->convertible(source))
break;
}
return chain;
}
BOOST_PYTHON_DECL void* find(
PyObject* source
, lvalue_from_python_registration const* chain)