Skip to content

Commit dc0f763

Browse files
fix type resolution (#159)
1 parent 9be0609 commit dc0f763

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ bool Cppyy::AppendTypesSlow(const std::string& name,
626626

627627
type = GetType(i, /*enable_slow_lookup=*/true);
628628
if (!type && parent && (Cpp::IsNamespace(parent) || Cpp::IsClass(parent))) {
629-
type = Cppyy::GetTypeFromScope(Cppyy::GetNamed(name, parent));
629+
type = Cppyy::GetTypeFromScope(Cppyy::GetNamed(resolved_name, parent));
630630
}
631631

632632
if (!type) {
@@ -1644,8 +1644,8 @@ Cppyy::TCppMethod_t Cppyy::GetMethodTemplate(
16441644
// CPyCppyy assumes that we attempt instantiation here
16451645
std::vector<Cpp::TemplateArgInfo> arg_types;
16461646
std::vector<Cpp::TemplateArgInfo> templ_params;
1647-
Cppyy::AppendTypesSlow(proto, arg_types);
1648-
Cppyy::AppendTypesSlow(explicit_params, templ_params);
1647+
Cppyy::AppendTypesSlow(proto, arg_types, scope);
1648+
Cppyy::AppendTypesSlow(explicit_params, templ_params, scope);
16491649

16501650
Cppyy::TCppMethod_t cppmeth = Cpp::BestOverloadFunctionMatch(
16511651
unresolved_candidate_methods, templ_params, arg_types);

0 commit comments

Comments
 (0)