1- From e842dfcca3652bb83c53d8e952e2c0b4ae99cd7d Mon Sep 17 00:00:00 2001
1+ From a78169cedc78a7a3787473652e394da3ead5dbdf Mon Sep 17 00:00:00 2001
22From: Silia Taider <siliataider@gmail.com>
33Date: Mon, 14 Jul 2025 11:26:30 +0200
44Subject: [PATCH] [Python][cppyy] Get overload from template proxy using input
@@ -9,7 +9,7 @@ Subject: [PATCH] [Python][cppyy] Get overload from template proxy using input
99 1 file changed, 24 insertions(+), 1 deletion(-)
1010
1111diff --git a/bindings/pyroot/cppyy/CPyCppyy/src/TemplateProxy.cxx b/bindings/pyroot/cppyy/CPyCppyy/src/TemplateProxy.cxx
12- index 20ea4929ad..ddd51346b6 100644
12+ index 20ea4929ad..235a804c37 100644
1313--- a/bindings/pyroot/cppyy/CPyCppyy/src/TemplateProxy.cxx
1414+++ b/bindings/pyroot/cppyy/CPyCppyy/src/TemplateProxy.cxx
1515@@ -729,6 +729,21 @@ static int tpp_setuseffi(CPPOverload*, PyObject*, void*)
@@ -57,7 +57,7 @@ index 20ea4929ad..ddd51346b6 100644
5757 scope = ((CPPClass*)pytmpl->fTI->fPyClass)->fCppType;
5858 cppmeth = Cppyy::GetMethodTemplate(
5959 scope, pytmpl->fTI->fCppName, proto.substr(1, proto.size()-2));
60- + } else if (PyArg_ParseTuple(args, const_cast<char*>("ss|i :__overload__"), &sigarg, &tmplarg, &want_const )) {
60+ + } else if (PyArg_ParseTuple(args, const_cast<char*>("ss:__overload__"), &sigarg, &tmplarg)) {
6161+ scope = ((CPPClass*)pytmpl->fTI->fPyClass)->fCppType;
6262+ std::string full_name = std::string(pytmpl->fTI->fCppName) + "<" + tmplarg + ">";
6363+
0 commit comments