| 536 | PyPrintDestructor() = default; |
| 537 | PyPrintDestructor(const PyPrintDestructor &) = default; |
| 538 | ~PyPrintDestructor() { py::print("Print from destructor"); } |
| 539 | void throw_something() { throw std::runtime_error("error"); } |
| 540 | }; |
| 541 | py::class_<PyPrintDestructor>(m, "PyPrintDestructor") |