mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Minor clarification (@AntoinePrv, #2083)
This commit is contained in:
parent
141e8cc0af
commit
fc3a4490b8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user