Is there some thing wrong in document ? #4016
edimetia3d
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In https://pybind11.readthedocs.io/en/stable/advanced/classes.html#combining-virtual-functions-and-inheritance
It says
Here, the
Husky
is a "registered class derived from a pybind11-registered class " so it is "required" to have a trampoline class.As far as I understand, in this "virtual-function-and-inheritance" context, the trampoline class is mainly to support override functions in python code, so any class that is needed to support this kind of behavior is required to have a trampoline when binding with pybin11.
If given that all class member functions of
Husky
will not be overridden in python, a trampoline class should be fine to be ignored. Is this correct?Beta Was this translation helpful? Give feedback.
All reactions