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:
6
pyptr.h
6
pyptr.h
@@ -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()); }
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user