From a4caa85fc66f1d023b2186705bc8f016f076411c Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 14 Dec 2015 12:39:02 +0100 Subject: [PATCH] added missing namespace declaration --- docs/advanced.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced.rst b/docs/advanced.rst index 7805de9a1..aa52a4c38 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -321,7 +321,7 @@ be realized as follows (important changes highlighted): /* Trampoline (need one for each virtual function) */ std::string go(int n_times) { /* Acquire GIL before calling Python code */ - gil_scoped_acquire acquire; + py::gil_scoped_acquire acquire; PYBIND11_OVERLOAD_PURE( std::string, /* Return type */ @@ -346,7 +346,7 @@ be realized as follows (important changes highlighted): m.def("call_go", [](Animal *animal) -> std::string { /* Release GIL before calling into (potentially long-running) C++ code */ - gil_scoped_release release; + py::gil_scoped_release release; return call_go(animal); });