Skip to content

Commit a415ec5

Browse files
fix: ignore const-ness of arg type when matching signatures (#173)
1 parent afdd377 commit a415ec5

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
@@ -1508,8 +1508,8 @@ Cppyy::TCppType_t Cppyy::GetMethodArgType(TCppMethod_t method, TCppIndex_t iarg)
15081508

15091509
std::string Cppyy::GetMethodArgTypeAsString(TCppMethod_t method, TCppIndex_t iarg)
15101510
{
1511-
return Cpp::GetTypeAsString(
1512-
Cpp::GetFunctionArgType(method, iarg));
1511+
return Cpp::GetTypeAsString(Cpp::RemoveTypeQualifier(
1512+
Cpp::GetFunctionArgType(method, iarg), Cpp::QualKind::Const));
15131513
}
15141514

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

0 commit comments

Comments
 (0)