From 3092e0728105dbab55955759c12e5a37df2896d2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 19 Aug 2002 22:19:50 +0000 Subject: [PATCH] Workaround VC6 bug [SVN r14975] --- .../python/return_internal_reference.hpp | 4 ++-- include/boost/python/return_value_policy.hpp | 4 ++-- .../boost/python/with_custodian_and_ward.hpp | 20 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/boost/python/return_internal_reference.hpp b/include/boost/python/return_internal_reference.hpp index 356bc9ed..3a968f45 100644 --- a/include/boost/python/return_internal_reference.hpp +++ b/include/boost/python/return_internal_reference.hpp @@ -23,9 +23,9 @@ namespace detail ; } -template +template struct return_internal_reference - : with_custodian_and_ward_postcall<0, owner_arg, Base> + : with_custodian_and_ward_postcall<0, owner_arg, BasePolicy_> { private: BOOST_STATIC_CONSTANT(bool, legal = owner_arg > 0); diff --git a/include/boost/python/return_value_policy.hpp b/include/boost/python/return_value_policy.hpp index 6a2036d7..0f3c00fe 100644 --- a/include/boost/python/return_value_policy.hpp +++ b/include/boost/python/return_value_policy.hpp @@ -9,8 +9,8 @@ namespace boost { namespace python { -template -struct return_value_policy : Base +template +struct return_value_policy : BasePolicy_ { typedef ResultConverterGenerator result_converter; }; diff --git a/include/boost/python/with_custodian_and_ward.hpp b/include/boost/python/with_custodian_and_ward.hpp index 517d690f..4d022448 100644 --- a/include/boost/python/with_custodian_and_ward.hpp +++ b/include/boost/python/with_custodian_and_ward.hpp @@ -11,14 +11,14 @@ namespace boost { namespace python { -template -struct with_custodian_and_ward : Base +template +struct with_custodian_and_ward : BasePolicy_ { static bool precall(PyObject* args); }; -template -struct with_custodian_and_ward_postcall : Base +template +struct with_custodian_and_ward_postcall : BasePolicy_ { static PyObject* postcall(PyObject* args, PyObject* result); }; @@ -26,8 +26,8 @@ struct with_custodian_and_ward_postcall : Base // // implementations // -template -bool with_custodian_and_ward::precall(PyObject* args_) +template +bool with_custodian_and_ward::precall(PyObject* args_) { BOOST_STATIC_ASSERT(custodian != ward); BOOST_STATIC_ASSERT(custodian > 0); @@ -42,7 +42,7 @@ bool with_custodian_and_ward::precall(PyObject* args_) if (life_support == 0) return false; - bool result = Base::precall(args_); + bool result = BasePolicy_::precall(args_); if (!result) Py_XDECREF(life_support); @@ -50,8 +50,8 @@ bool with_custodian_and_ward::precall(PyObject* args_) return result; } -template -PyObject* with_custodian_and_ward_postcall::postcall(PyObject* args_, PyObject* result) +template +PyObject* with_custodian_and_ward_postcall::postcall(PyObject* args_, PyObject* result) { BOOST_STATIC_ASSERT(custodian != ward); @@ -61,7 +61,7 @@ PyObject* with_custodian_and_ward_postcall::postcall(PyObje PyObject* nurse = custodian > 0 ? PyTuple_GetItem(args_, custodian - 1) : result; if (nurse == 0) return 0; - result = Base::postcall(args_, result); + result = BasePolicy_::postcall(args_, result); if (result == 0) return 0;