| 38 | PYBIND11_NAMESPACE_BEGIN(initimpl) |
| 39 | |
| 40 | inline void no_nullptr(const void *ptr) { |
| 41 | if (!ptr) { |
| 42 | throw type_error("pybind11::init(): factory function returned nullptr"); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // Implementing functions for all forms of py::init<...> and py::init(...) |
| 47 | template <typename Class> |
no outgoing calls
no test coverage detected