MCPcopy Create free account
hub / github.com/pybind/pybind11 / f

Method f

tests/test_virtual_functions.cpp:278–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected