Exception that will be registered with register_local_exception_translator
| 49 | |
| 50 | // Exception that will be registered with register_local_exception_translator |
| 51 | class LocalSimpleException : public std::exception { |
| 52 | public: |
| 53 | explicit LocalSimpleException(const char *m) : message{m} {} |
| 54 | const char *what() const noexcept override { return message.c_str(); } |
| 55 | |
| 56 | private: |
| 57 | std::string message = ""; |
| 58 | }; |
| 59 | |
| 60 | PYBIND11_MAKE_OPAQUE(LocalVec) |
| 61 | PYBIND11_MAKE_OPAQUE(LocalVec2) |
no outgoing calls