File tree 1 file changed +6
-6
lines changed
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>``.
18
18
====================
19
19
20
20
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
27
27
28
28
* ``py::class_<T> `` to
29
29
You can’t perform that action at this time.
0 commit comments