From 2808fe128bda63143ce87f76055c1b86052d43cf Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Mon, 7 Oct 2024 13:03:55 +0000 Subject: [PATCH] fix parsing template params --- clingwrapper/src/clingwrapper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clingwrapper/src/clingwrapper.cxx b/clingwrapper/src/clingwrapper.cxx index 5b2aca12..4380ed1b 100644 --- a/clingwrapper/src/clingwrapper.cxx +++ b/clingwrapper/src/clingwrapper.cxx @@ -1497,7 +1497,7 @@ Cppyy::TCppMethod_t Cppyy::GetMethodTemplate( if (name.find('<') != std::string::npos) { pureName = name.substr(0, name.find('<')); size_t start = name.find('<'); - size_t end = name.find('>'); + size_t end = name.rfind('>'); explicit_params = name.substr(start + 1, end - start - 1); }