Skip to content

Commit 65c7516

Browse files
fix: trim space from reference typename
1 parent cb2b1ed commit 65c7516

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Executors.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,9 @@ CPyCppyy::Executor* CPyCppyy::CreateExecutor(Cppyy::TCppType_t type, cdims_t dim
903903

904904
// an exactly matching executor is best
905905
std::string fullType = Cppyy::GetTypeAsString(type);
906+
if (fullType.ends_with(" &"))
907+
fullType = fullType.substr(0, fullType.size() - 2) + "&";
908+
906909
ExecFactories_t::iterator h = gExecFactories.find(fullType);
907910
if (h != gExecFactories.end())
908911
return (h->second)(dims);

0 commit comments

Comments
 (0)