diff --git a/src/Dispatcher.cxx b/src/Dispatcher.cxx index db38857..cdef2b8 100644 --- a/src/Dispatcher.cxx +++ b/src/Dispatcher.cxx @@ -45,7 +45,7 @@ static inline void InjectMethod(Cppyy::TCppMethod_t method, const std::string& m " return"; if (retType != "void") { if (retType.back() != '*') - code << " " << CPyCppyy::TypeManip::remove_const(retType) << "{}"; + code << " (" << CPyCppyy::TypeManip::remove_const(retType) << "){}"; else code << " nullptr"; }