Minor clarification (@AntoinePrv, #2083)

This commit is contained in:
Wenzel Jakob 2020-07-01 00:25:17 +02:00
parent 141e8cc0af
commit fc3a4490b8
1 changed files with 2 additions and 2 deletions

View File

@ -298,8 +298,8 @@ The classes are then registered with pybind11 using:
.. code-block:: cpp .. code-block:: cpp
py::class_<Animal, PyAnimal<>> animal(m, "Animal"); py::class_<Animal, PyAnimal<>> animal(m, "Animal");
py::class_<Dog, PyDog<>> dog(m, "Dog"); py::class_<Dog, Animal, PyDog<>> dog(m, "Dog");
py::class_<Husky, PyDog<Husky>> husky(m, "Husky"); py::class_<Husky, Dog, PyDog<Husky>> husky(m, "Husky");
// ... add animal, dog, husky definitions // ... add animal, dog, husky definitions
Note that ``Husky`` did not require a dedicated trampoline template class at Note that ``Husky`` did not require a dedicated trampoline template class at