From 52d7dfffdf039577556b5997c1a688a7db568dff Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Fri, 11 Jun 2010 18:06:25 +0000 Subject: [PATCH] Use the convertible_function typedef instead of the raw function pointer type. Fixes #903 [SVN r62808] --- include/boost/python/converter/registry.hpp | 2 +- src/converter/registry.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/python/converter/registry.hpp b/include/boost/python/converter/registry.hpp index e037bbcc..368adcc6 100644 --- a/include/boost/python/converter/registry.hpp +++ b/include/boost/python/converter/registry.hpp @@ -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( diff --git a/src/converter/registry.cpp b/src/converter/registry.cpp index d203ea8c..aa20c3f6 100644 --- a/src/converter/registry.cpp +++ b/src/converter/registry.cpp @@ -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)())