diff --git a/Lib/python/std_common.i b/Lib/python/std_common.i index af039b981..f2ea2f3d9 100644 --- a/Lib/python/std_common.i +++ b/Lib/python/std_common.i @@ -196,7 +196,7 @@ namespace swigpy { static bool asval(PyObject *obj, Type *val) { if (val) { Type *p = 0; - int res = asptr(obj, &p); + int res = traits_asptr::asptr(obj, &p); if (res && p) { typedef typename noconst_traits::noconst_type noconst_type; *(const_cast(val)) = *p; @@ -206,7 +206,7 @@ namespace swigpy { return false; } } else { - return asptr(obj, (Type **)(0)); + return traits_asptr::asptr(obj, (Type **)(0)); } } };