We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141e8cc commit fc3a449Copy full SHA for fc3a449
docs/advanced/classes.rst
@@ -298,8 +298,8 @@ The classes are then registered with pybind11 using:
298
.. code-block:: cpp
299
300
py::class_<Animal, PyAnimal<>> animal(m, "Animal");
301
- py::class_<Dog, PyDog<>> dog(m, "Dog");
302
- py::class_<Husky, PyDog<Husky>> husky(m, "Husky");
+ py::class_<Dog, Animal, PyDog<>> dog(m, "Dog");
+ py::class_<Husky, Dog, PyDog<Husky>> husky(m, "Husky");
303
// ... add animal, dog, husky definitions
304
305
Note that ``Husky`` did not require a dedicated trampoline template class at
0 commit comments