diff --git a/include/pocketpy/bindings.h b/include/pocketpy/bindings.h index b784f449..5b2aaae4 100644 --- a/include/pocketpy/bindings.h +++ b/include/pocketpy/bindings.h @@ -70,19 +70,19 @@ PyObject* VM::bind(PyObject* obj, const char* sig, Ret(*func)(Params...), BindTy template PyObject* VM::bind(PyObject* obj, const char* sig, Ret(T::*func)(Params...), BindType bt){ - auto proxy = new NativeProxyMethodC(func); + NativeProxyFuncCBase* proxy = new NativeProxyMethodC(func); return vm->bind(obj, sig, __proxy_wrapper, proxy, bt); } template PyObject* VM::bind(PyObject* obj, const char* sig, const char* docstring, Ret(*func)(Params...), BindType bt){ - auto proxy = new NativeProxyFuncC(func); + NativeProxyFuncCBase* proxy = new NativeProxyFuncC(func); return vm->bind(obj, sig, docstring, __proxy_wrapper, proxy, bt); } template PyObject* VM::bind(PyObject* obj, const char* sig, const char* docstring, Ret(T::*func)(Params...), BindType bt){ - auto proxy = new NativeProxyMethodC(func); + NativeProxyFuncCBase* proxy = new NativeProxyMethodC(func); return vm->bind(obj, sig, docstring, __proxy_wrapper, proxy, bt); }