diff --git a/pyptr.h b/pyptr.h index 81bd7f55..3b0c99e4 100644 --- a/pyptr.h +++ b/pyptr.h @@ -28,13 +28,13 @@ template struct PyPtrConversions : Base { inline friend T from_python(PyObject* x, py::Type) - { return T(py::Downcast(x).get(), T::new_ref); } + { return T(py::Downcast(x).get(), T::new_ref); } inline friend T from_python(PyObject* x, py::Type) - { return T(py::Downcast(x).get(), T::new_ref); } + { return T(py::Downcast(x).get(), T::new_ref); } inline friend PyObject* to_python(T x) - { return as_object(x.release()); } + { return py::as_object(x.release()); } };