Skip to content

Commit 52d7dff

Browse files
committed
Use the convertible_function typedef instead of the raw function pointer type. Fixes #903
[SVN r62808]
1 parent a3e76d5 commit 52d7dff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/boost/python/converter/registry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace registry
3030
BOOST_PYTHON_DECL void insert(to_python_function_t, type_info, PyTypeObject const* (*to_python_target_type)() = 0);
3131

3232
// Insert an lvalue from_python converter
33-
BOOST_PYTHON_DECL void insert(void* (*convert)(PyObject*), type_info, PyTypeObject const* (*expected_pytype)() = 0);
33+
BOOST_PYTHON_DECL void insert(convertible_function, type_info, PyTypeObject const* (*expected_pytype)() = 0);
3434

3535
// Insert an rvalue from_python converter
3636
BOOST_PYTHON_DECL void insert(

src/converter/registry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ namespace registry
243243
}
244244

245245
// Insert an rvalue from_python converter
246-
void insert(void* (*convertible)(PyObject*)
246+
void insert(convertible_function convertible
247247
, constructor_function construct
248248
, type_info key
249249
, PyTypeObject const* (*exp_pytype)())
@@ -261,7 +261,7 @@ namespace registry
261261
}
262262

263263
// Insert an rvalue from_python converter
264-
void push_back(void* (*convertible)(PyObject*)
264+
void push_back(convertible_function convertible
265265
, constructor_function construct
266266
, type_info key
267267
, PyTypeObject const* (*exp_pytype)())

0 commit comments

Comments
 (0)