mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-06 07:23:23 +08:00
Pointing out namespace in docs (#2874)
This commit is contained in:
parent
e2e819b2d8
commit
9c0aa69937
@ -50,7 +50,7 @@ implied transfer of ownership, i.e.:
|
|||||||
|
|
||||||
.. code-block:: cpp
|
.. code-block:: cpp
|
||||||
|
|
||||||
m.def("get_data", &get_data, return_value_policy::reference);
|
m.def("get_data", &get_data, py::return_value_policy::reference);
|
||||||
|
|
||||||
On the other hand, this is not the right policy for many other situations,
|
On the other hand, this is not the right policy for many other situations,
|
||||||
where ignoring ownership could lead to resource leaks.
|
where ignoring ownership could lead to resource leaks.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user