added missing namespace declaration

This commit is contained in:
Wenzel Jakob 2015-12-14 12:39:02 +01:00
parent e98a5dfa7e
commit a4caa85fc6

View File

@ -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):
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);
}); });