MCPcopy Create free account
hub / github.com/pybind/pybind11 / PyPrintDestructor

Method PyPrintDestructor

tests/test_class.cpp:536–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534 // test_exception_rvalue_abort
535 struct PyPrintDestructor {
536 PyPrintDestructor() = default;
537 PyPrintDestructor(const PyPrintDestructor &) = default;
538 ~PyPrintDestructor() { py::print("Print from destructor"); }
539 void throw_something() { throw std::runtime_error("error"); }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected