From 16dccc14ea928739bebb3a7de55c0cbdb85f7bb6 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Fri, 29 Sep 2006 00:30:42 +0000 Subject: [PATCH] Fixed python test regression and PP test failure. [SVN r35404] --- include/boost/parameter/aux_/python/invoker.hpp | 4 ++-- test/python_test.cpp | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/include/boost/parameter/aux_/python/invoker.hpp b/include/boost/parameter/aux_/python/invoker.hpp index d90ad7d..57a585f 100755 --- a/include/boost/parameter/aux_/python/invoker.hpp +++ b/include/boost/parameter/aux_/python/invoker.hpp @@ -85,9 +85,9 @@ struct invoker<0, M, R, Args> template struct member_invoker<0, M, R, T, Args> { - static R execute() + static R execute(T& self) { - return M()(boost::type()); + return M()(boost::type(), self); } }; diff --git a/test/python_test.cpp b/test/python_test.cpp index ca60ad6..1cb74b9 100755 --- a/test/python_test.cpp +++ b/test/python_test.cpp @@ -98,6 +98,18 @@ struct g_fwd struct h_fwd { + template + R operator()(boost::type, T& self) + { + return self.h(); + } + + template + R operator()(boost::type, T& self, A0 const& a0) + { + return self.h(a0); + } + template R operator()(boost::type, T& self, A0 const& a0, A1 const& a1) { @@ -142,7 +154,7 @@ BOOST_PYTHON_MODULE(python_test_ext) , boost::parameter::python::function< h_fwd , mpl::vector< - X&, tag::x*(std::string), tag::y*(std::string) + X&, tag::x**(std::string), tag::y**(std::string) > >() , return_arg<>()