summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-31 23:35:23 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-31 23:35:23 +0100
commitb192548a21bae54b96c019f3330f6dac4817724b (patch)
tree44734a69f329daad1d2e6bf136a861379d065e10
parentf18aca0bfc380337d99871f6255bd600c70015ca (diff)
downloadpython-apt-b192548a21bae54b96c019f3330f6dac4817724b.tar.gz
python/generic.h: Fix CppPyObject_NEW with parameter again.
-rw-r--r--python/generic.h4
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";