mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
Merge pull request #371 from jagerman/overload-name-doc-fix
Doc fix for OVERLOAD*_NAME macros
This commit is contained in:
commit
d9b3db3e64
@ -298,9 +298,10 @@ functions, and :func:`PYBIND11_OVERLOAD` should be used for functions which have
|
||||
a default implementation.
|
||||
|
||||
There are also two alternate macros :func:`PYBIND11_OVERLOAD_PURE_NAME` and
|
||||
:func:`PYBIND11_OVERLOAD_NAME` which take a string-valued name argument
|
||||
after the *Name of the function* slot. This is useful when the C++ and Python
|
||||
versions of the function have different names, e.g. ``operator()`` vs ``__call__``.
|
||||
:func:`PYBIND11_OVERLOAD_NAME` which take a string-valued name argument between
|
||||
the *Parent class* and *Name of the function* slots. This is useful when the
|
||||
C++ and Python versions of the function have different names, e.g.
|
||||
``operator()`` vs ``__call__``.
|
||||
|
||||
The binding code also needs a few minor adaptations (highlighted):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user