mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Fix doc typo
"trampoline" is doubled in the first sentence.
This commit is contained in:
parent
f217c04195
commit
6eca083e4c
@ -327,10 +327,10 @@ The binding code also needs a few minor adaptations (highlighted):
|
|||||||
return m.ptr();
|
return m.ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
Importantly, pybind11 is made aware of the trampoline trampoline helper class
|
Importantly, pybind11 is made aware of the trampoline helper class by
|
||||||
by specifying it as an extra template argument to :class:`class_`. (This can
|
specifying it as an extra template argument to :class:`class_`. (This can also
|
||||||
also be combined with other template arguments such as a custom holder type;
|
be combined with other template arguments such as a custom holder type; the
|
||||||
the order of template types does not matter). Following this, we are able to
|
order of template types does not matter). Following this, we are able to
|
||||||
define a constructor as usual.
|
define a constructor as usual.
|
||||||
|
|
||||||
Note, however, that the above is sufficient for allowing python classes to
|
Note, however, that the above is sufficient for allowing python classes to
|
||||||
|
Loading…
Reference in New Issue
Block a user