From ca872af3c8147c8fc3eef2594698b08a8b147a7d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 16 Feb 2002 18:11:24 +0000 Subject: [PATCH] HolderGenerator renamed to MakeHolder [SVN r12841] --- include/boost/python/to_python_indirect.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/boost/python/to_python_indirect.hpp b/include/boost/python/to_python_indirect.hpp index e68eced0..306b3246 100644 --- a/include/boost/python/to_python_indirect.hpp +++ b/include/boost/python/to_python_indirect.hpp @@ -14,7 +14,7 @@ namespace boost { namespace python { -template +template struct to_python_indirect { static bool convertible(); @@ -61,14 +61,14 @@ namespace detail }; } -template -inline bool to_python_indirect::convertible() +template +inline bool to_python_indirect::convertible() { return type() != 0; } -template -inline PyObject* to_python_indirect::operator()(T x) const +template +inline PyObject* to_python_indirect::operator()(T x) const { PyObject* raw_result = type()->tp_alloc(type(), 0); @@ -82,7 +82,7 @@ inline PyObject* to_python_indirect::operator()(T x) const // Build a value_holder to contain the object using the copy // constructor objects::instance_holder* p = - detail::unwind_type(x); + detail::unwind_type(x); // Install it in the instance p->install(raw_result); @@ -91,8 +91,8 @@ inline PyObject* to_python_indirect::operator()(T x) const return result.release(); } -template -inline PyTypeObject* to_python_indirect::type() +template +inline PyTypeObject* to_python_indirect::type() { return detail::unwind_type(); }