Skip to content

Commit 449cceb

Browse files
committed
Incorporate suggestion by @virtuald: #5542 (comment)
1 parent 388fa99 commit 449cceb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/advanced/smart_ptrs.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ a type ``T`` is ``std::unique_ptr<T>``.
1818
====================
1919

2020
Starting 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

0 commit comments

Comments
 (0)