Skip to content

Commit 5558781

Browse files
Reapply "fix type creation for typedef to class pointer (#123)"
This reverts commit 0d289d3.
1 parent 23fd641 commit 5558781

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ProxyWrappers.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,8 @@ PyObject* CPyCppyy::CreateScopeProxy(const std::string& name, PyObject* parent,
577577
} else if (Cppyy::TCppScope_t klass = Cppyy::GetScope(name, parent_scope)) {
578578
if (Cppyy::IsTypedefed(klass) &&
579579
Cppyy::IsPointerType(Cppyy::GetTypeFromScope(klass)) &&
580-
Cppyy::IsClass(Cppyy::GetUnderlyingScope(klass)) &&
581-
!Cppyy::IsComplete(Cppyy::GetUnderlyingScope(klass)))
582-
return nullptr; // this is handled by the caller; typedef to undefined class pointer
580+
Cppyy::IsClass(Cppyy::GetUnderlyingScope(klass)))
581+
return nullptr; // this is handled by the caller; typedef to class pointer
583582
return CreateScopeProxy(klass, parent, flags);
584583
} else if (Cppyy::IsBuiltin(name)) {
585584
Cppyy::TCppType_t type = Cppyy::GetType(name);

0 commit comments

Comments
 (0)