| 106 | // mechanisms. |
| 107 | template <typename Class> |
| 108 | void construct(...) { |
| 109 | static_assert(!std::is_same<Class, Class>::value /* always false */, |
| 110 | "pybind11::init(): init function must return a compatible pointer, " |
| 111 | "holder, or value"); |
| 112 | } |
| 113 | |
| 114 | // Pointer return v1: the factory function returns a class pointer for a registered class. |
| 115 | // If we don't need an alias (because this class doesn't have one, or because the final type is |
nothing calls this directly
no test coverage detected