Skip to content

Commit

Permalink
Suggest py::smart_holder for "most situations for safety"
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Mar 1, 2025
1 parent b73f430 commit d3f9f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ constructor (see the :ref:`custom_constructors` section for details).
.. note::

Starting with pybind11v3, it is recommended to include `py::smart_holder`
if you plan to support conversions to C++ smart pointers. See
:ref:`smart_holder` for more information.
in most situations for safety, especially if you plan to support conversions
to C++ smart pointers. See :ref:`smart_holder` for more information.

An interactive Python session demonstrating this example is shown below:

Expand Down

0 comments on commit d3f9f93

Please sign in to comment.