mirror of
https://github.com/boostorg/parameter_python.git
synced 2026-01-20 16:52:13 +00:00
Fixed python test regression and PP test failure.
[SVN r35404]
This commit is contained in:
committed by
Peter Dimov
parent
e556ff29a9
commit
16dccc14ea
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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<>()
|
||||
|
||||
Reference in New Issue
Block a user