Exception that will be caught via the module local translator.
| 81 | |
| 82 | // Exception that will be caught via the module local translator. |
| 83 | class MyException6 : public std::exception { |
| 84 | public: |
| 85 | explicit MyException6(const char *m) : message{m} {} |
| 86 | const char *what() const noexcept override { return message.c_str(); } |
| 87 | |
| 88 | private: |
| 89 | std::string message = ""; |
| 90 | }; |
| 91 | |
| 92 | struct PythonCallInDestructor { |
| 93 | explicit PythonCallInDestructor(const py::dict &d) : d(d) {} |
no outgoing calls