diff options
| -rw-r--r-- | python/generic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/generic.h b/python/generic.h index 2b413a02..7d2d6d3e 100644 --- a/python/generic.h +++ b/python/generic.h @@ -155,8 +155,8 @@ inline CppPyObject<T> *CppPyObject_NEW(PyObject *Owner,PyTypeObject *Type) return New; } -template <class T> -inline CppPyObject<T> *CppPyObject_NEW(PyObject *Owner, PyTypeObject *Type,T const &Arg) +template <class T,class A> +inline CppPyObject<T> *CppPyObject_NEW(PyObject *Owner, PyTypeObject *Type,A const &Arg) { #ifdef ALLOC_DEBUG std::cerr << "=== ALLOCATING " << Type->tp_name << "+ ===\n"; |
