Skip to content

Commit 1a6e625

Browse files
fix: ignore const-ness of arg type when matching signatures
1 parent 8c75b36 commit 1a6e625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,8 @@ Cppyy::TCppType_t Cppyy::GetMethodArgType(TCppMethod_t method, TCppIndex_t iarg)
15001500

15011501
std::string Cppyy::GetMethodArgTypeAsString(TCppMethod_t method, TCppIndex_t iarg)
15021502
{
1503-
return Cpp::GetTypeAsString(
1504-
Cpp::GetFunctionArgType(method, iarg));
1503+
return Cpp::GetTypeAsString(Cpp::RemoveTypeQualifier(
1504+
Cpp::GetFunctionArgType(method, iarg), Cpp::QualKind::Const));
15051505
}
15061506

15071507
std::string Cppyy::GetMethodArgCanonTypeAsString(TCppMethod_t method, TCppIndex_t iarg)

0 commit comments

Comments
 (0)