From 9c0aa69937dbb9d7023123d5d98914855432982c Mon Sep 17 00:00:00 2001 From: Tom de Geus Date: Thu, 25 Feb 2021 16:25:50 +0100 Subject: [PATCH] Pointing out namespace in docs (#2874) --- docs/advanced/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/functions.rst b/docs/advanced/functions.rst index 55a40a5b5..6a93ab9da 100644 --- a/docs/advanced/functions.rst +++ b/docs/advanced/functions.rst @@ -50,7 +50,7 @@ implied transfer of ownership, i.e.: .. 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, where ignoring ownership could lead to resource leaks.