We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e819b commit 9c0aa69Copy full SHA for 9c0aa69
docs/advanced/functions.rst
@@ -50,7 +50,7 @@ implied transfer of ownership, i.e.:
50
51
.. code-block:: cpp
52
53
- m.def("get_data", &get_data, return_value_policy::reference);
+ m.def("get_data", &get_data, py::return_value_policy::reference);
54
55
On the other hand, this is not the right policy for many other situations,
56
where ignoring ownership could lead to resource leaks.
0 commit comments