diff --git a/test/injected.cpp b/test/injected.cpp index 0400ad61..31eff3cf 100755 --- a/test/injected.cpp +++ b/test/injected.cpp @@ -10,6 +10,7 @@ #include #include #include +#include using namespace boost::python; @@ -29,7 +30,11 @@ BOOST_PYTHON_MODULE(injected_ext) class_("X", init()) .def("__init__", make_constructor(empty)) .def("__init__", make_constructor(sum)) - .def("__init__", make_constructor(product), "this is product's docstring") + .def("__init__", make_constructor(product + , default_call_policies() + , ( arg_("a"), arg_("b"), arg_("c")) + ), + "this is product's docstring") .def("value", &X::value) ; } diff --git a/test/injected.py b/test/injected.py index 4f6766f4..32ea0bf9 100644 --- a/test/injected.py +++ b/test/injected.py @@ -5,7 +5,7 @@ >>> from injected_ext import * >>> X(3,5).value() - (3+5) 0 ->>> X(3,5,7).value() - (3*5*7) +>>> X(a=3,b=5,c=7).value() - (3*5*7) 0 >>> X().value() 1000