test line breaks in default argument representation
| 43 | |
| 44 | // test line breaks in default argument representation |
| 45 | struct CustomRepr { |
| 46 | std::string repr_string; |
| 47 | |
| 48 | explicit CustomRepr(const std::string &repr) : repr_string(repr) {} |
| 49 | |
| 50 | std::string __repr__() const { return repr_string; } |
| 51 | }; |
| 52 | |
| 53 | py::class_<CustomRepr>(m, "CustomRepr") |
| 54 | .def(py::init<const std::string &>()) |
no outgoing calls