| 276 | ~PyA() override { py::print("PyA.~PyA()"); } |
| 277 | |
| 278 | void f() override { |
| 279 | py::print("PyA.f()"); |
| 280 | // This convolution just gives a `void`, but tests that PYBIND11_TYPE() works to |
| 281 | // protect a type containing a , |
| 282 | PYBIND11_OVERRIDE(PYBIND11_TYPE(typename std::enable_if<true, void>::type), A, f); |
| 283 | } |
| 284 | }; |
| 285 | |
| 286 | py::class_<A, PyA>(m, "A").def(py::init<>()).def("f", &A::f); |