2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 07:22:31 +00:00

Use the convertible_function typedef instead of the raw function pointer type. Fixes #903

[SVN r62808]
This commit is contained in:
Steven Watanabe
2010-06-11 18:06:25 +00:00
parent a3e76d59c3
commit 52d7dfffdf
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ namespace registry
BOOST_PYTHON_DECL void insert(to_python_function_t, type_info, PyTypeObject const* (*to_python_target_type)() = 0);
// Insert an lvalue from_python converter
BOOST_PYTHON_DECL void insert(void* (*convert)(PyObject*), type_info, PyTypeObject const* (*expected_pytype)() = 0);
BOOST_PYTHON_DECL void insert(convertible_function, type_info, PyTypeObject const* (*expected_pytype)() = 0);
// Insert an rvalue from_python converter
BOOST_PYTHON_DECL void insert(

View File

@@ -243,7 +243,7 @@ namespace registry
}
// Insert an rvalue from_python converter
void insert(void* (*convertible)(PyObject*)
void insert(convertible_function convertible
, constructor_function construct
, type_info key
, PyTypeObject const* (*exp_pytype)())
@@ -261,7 +261,7 @@ namespace registry
}
// Insert an rvalue from_python converter
void push_back(void* (*convertible)(PyObject*)
void push_back(convertible_function convertible
, constructor_function construct
, type_info key
, PyTypeObject const* (*exp_pytype)())