| 36 | BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(makeIt_overloads, makeIt, 1, 3) |
| 37 | |
| 38 | BOOST_PYTHON_MODULE(overload) |
| 39 | { |
| 40 | void (Example::*d1)() = &Example::doit; |
| 41 | std::string (Example::*d2)(unsigned int) = &Example::doit; |
| 42 | void (Example::*d3)(std::string) = &Example::doit; |
| 43 | |
| 44 | class_<Example>("Example") |
| 45 | .def("__str__", &Example::print) |
| 46 | .def("doit", d1) |
| 47 | .def("doit", d2) |
| 48 | .def("doit", d3) |
| 49 | .def("makeIt", &Example::makeIt, makeIt_overloads()) |
| 50 | ; |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected