Commit a4caa85f by Wenzel Jakob

added missing namespace declaration

parent e98a5dfa
...@@ -321,7 +321,7 @@ be realized as follows (important changes highlighted): ...@@ -321,7 +321,7 @@ be realized as follows (important changes highlighted):
/* Trampoline (need one for each virtual function) */ /* Trampoline (need one for each virtual function) */
std::string go(int n_times) { std::string go(int n_times) {
/* Acquire GIL before calling Python code */ /* Acquire GIL before calling Python code */
gil_scoped_acquire acquire; py::gil_scoped_acquire acquire;
PYBIND11_OVERLOAD_PURE( PYBIND11_OVERLOAD_PURE(
std::string, /* Return type */ std::string, /* Return type */
...@@ -346,7 +346,7 @@ be realized as follows (important changes highlighted): ...@@ -346,7 +346,7 @@ be realized as follows (important changes highlighted):
m.def("call_go", [](Animal *animal) -> std::string { m.def("call_go", [](Animal *animal) -> std::string {
/* Release GIL before calling into (potentially long-running) C++ code */ /* Release GIL before calling into (potentially long-running) C++ code */
gil_scoped_release release; py::gil_scoped_release release;
return call_go(animal); return call_go(animal);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment