diff --git a/Lib/python/std_common.i b/Lib/python/std_common.i index f2ea2f3d9..f60ae63ba 100644 --- a/Lib/python/std_common.i +++ b/Lib/python/std_common.i @@ -215,7 +215,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) { typedef typename noconst_traits::noconst_type noconst_type; *(const_cast(val)) = p; @@ -224,7 +224,7 @@ namespace swigpy { return false; } } else { - return asptr(obj, (Type **)(0)); + return traits_asptr::asptr(obj, (Type **)(0)); } } };