Fixed python test regression and PP test failure.

[SVN r35404]
This commit is contained in:
Daniel Wallin
2006-09-29 00:30:42 +00:00
committed by Peter Dimov
parent e556ff29a9
commit 16dccc14ea
2 changed files with 15 additions and 3 deletions

View File

@@ -85,9 +85,9 @@ struct invoker<0, M, R, Args>
template <class M, class R, class T, class Args>
struct member_invoker<0, M, R, T, Args>
{
static R execute()
static R execute(T& self)
{
return M()(boost::type<R>());
return M()(boost::type<R>(), self);
}
};

View File

@@ -98,6 +98,18 @@ struct g_fwd
struct h_fwd
{
template <class R, class T>
R operator()(boost::type<R>, T& self)
{
return self.h();
}
template <class R, class T, class A0>
R operator()(boost::type<R>, T& self, A0 const& a0)
{
return self.h(a0);
}
template <class R, class T, class A0, class A1>
R operator()(boost::type<R>, 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<>()