Skip to content

Commit 37b461b

Browse files
committed
update patch
1 parent bdf6f70 commit 37b461b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bindings/pyroot/cppyy/patches/cppyy-Get-overload-from-template-proxy-using-tmpl-args.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e842dfcca3652bb83c53d8e952e2c0b4ae99cd7d Mon Sep 17 00:00:00 2001
1+
From a78169cedc78a7a3787473652e394da3ead5dbdf Mon Sep 17 00:00:00 2001
22
From: Silia Taider <siliataider@gmail.com>
33
Date: Mon, 14 Jul 2025 11:26:30 +0200
44
Subject: [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

1111
diff --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

Comments
 (0)