We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47bfa16 commit 4d86beaCopy full SHA for 4d86bea
src/Converters.cxx
@@ -2055,7 +2055,10 @@ bool CPyCppyy::InstanceConverter::SetArg(
2055
CPPInstance* pyobj = GetCppInstance(pyobject);
2056
if (pyobj) {
2057
auto oisa = pyobj->ObjectIsA();
2058
- if (oisa && (oisa == fClass || Cppyy::IsSubclass(oisa, fClass))) {
+ if (oisa && ((oisa == (Cppyy::IsTypedefed(fClass)
2059
+ ? Cppyy::GetUnderlyingScope(fClass)
2060
+ : fClass)) ||
2061
+ Cppyy::IsSubclass(oisa, fClass))) {
2062
// calculate offset between formal and actual arguments
2063
para.fValue.fVoidp = pyobj->GetObject();
2064
if (!para.fValue.fVoidp)
0 commit comments