File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ a type ``T`` is ``std::unique_ptr<T>``.
1818====================
1919
2020Starting with pybind11v3, ``py::smart_holder `` is built into pybind11. It is
21- the recommended ``py::class_ `` holder for most situations, but it is ** not **
22- the default holder, and there are no plans to make it the default holder in
23- the future. This decision is based on the assumption that such a change would
24- cause more disruption than benefit, especially because it is extremely easy
25- to use the safer and more versatile ``py::smart_holder ``. To use
26- `` py::smart_holder `` for a given C++ type `` T ``, simply change
21+ the recommended ``py::class_ `` holder for most situations. However, for
22+ backward compatibility it is ** not ** the default holder, and there are no
23+ plans to make it the default holder in the future.
24+
25+ It is extremely easy to use the safer and more versatile ``py::smart_holder ``:
26+ simply change
2727
2828* ``py::class_<T> `` to
2929
You can’t perform that action at this time.
0 commit comments