File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ disadvantage of having to use the ``PYBIND11_SMART_HOLDER_TYPE_CASTERS`` macro.
85
85
Conservative mode
86
86
-----------------
87
87
88
- Here is a minimal example for wrapping a C++ type with the ` smart_holder `
89
- type as the holder:
88
+ Here is a minimal example for wrapping a C++ type with `` py:: smart_holder `` as
89
+ holder:
90
90
91
91
.. code-block :: cpp
92
92
@@ -106,7 +106,7 @@ There are three small differences compared to traditional pybind11:
106
106
- ``#include <pybind11/smart_holder.h> `` is used instead of
107
107
``#include <pybind11/pybind11.h> ``.
108
108
109
- - ``py::classh `` is used instead of `py::class_ `.
109
+ - ``py::classh `` is used instead of `` py::class_ ` `.
110
110
111
111
- The ``PYBIND11_SMART_HOLDER_TYPE_CASTERS(Foo) `` macro is needed.
112
112
@@ -183,7 +183,7 @@ GitHub testing of PRs against the smart_holder branch
183
183
184
184
PRs against the smart_holder branch need to be tested in both
185
185
modes (conservative, progressive), with the only difference that
186
- `PYBIND11_USE_SMART_HOLDER_AS_DEFAULT ` is defined for progressive mode
186
+ `` PYBIND11_USE_SMART_HOLDER_AS_DEFAULT ` ` is defined for progressive mode
187
187
testing. Currently this is handled simply by creating a secondary PR with a
188
188
one-line change in ``include/pybind11/detail/smart_holder_sfinae_hooks_only.h ``
189
189
(as in e.g. `PR #2879 <https://github.com/pybind/pybind11/pull/2879 >`_). It
You can’t perform that action at this time.
0 commit comments