2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Added some missing 'typename's and a GCC workaround fix

[SVN r8125]
This commit is contained in:
Dave Abrahams
2000-11-04 06:09:31 +00:00
parent 1219b7be0c
commit 21ee6ab4b7

View File

@@ -28,13 +28,13 @@ template <class T, class Base>
struct PyPtrConversions : Base
{
inline friend T from_python(PyObject* x, py::Type<const T&>)
{ return T(py::Downcast<T::value_type>(x).get(), T::new_ref); }
{ return T(py::Downcast<typename T::value_type>(x).get(), T::new_ref); }
inline friend T from_python(PyObject* x, py::Type<T>)
{ return T(py::Downcast<T::value_type>(x).get(), T::new_ref); }
{ return T(py::Downcast<typename T::value_type>(x).get(), T::new_ref); }
inline friend PyObject* to_python(T x)
{ return as_object(x.release()); }
{ return py::as_object(x.release()); }
};