Skip to content

Commit

Permalink
fix type converters function resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Oct 27, 2024
1 parent 66d7196 commit 4fab5c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Converters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3349,11 +3349,10 @@ CPyCppyy::Converter* CPyCppyy::CreateConverter(Cppyy::TCppType_t type, cdims_t d

if (!result && cpd == "&&") {
// for builtin, can use const-ref for r-ref
h = gConvFactories.find("const " + realTypeStr + " &");
h = gConvFactories.find("const " + realTypeStr + "&");
if (h != gConvFactories.end())
return (h->second)(dims);
std::string temp ="const " + realUnresolvedTypeStr + " &";
h = gConvFactories.find("const " + realUnresolvedTypeStr + " &");
h = gConvFactories.find("const " + realUnresolvedTypeStr + "&");
if (h != gConvFactories.end())
return (h->second)(dims);
// else, unhandled moves
Expand Down

0 comments on commit 4fab5c4

Please sign in to comment.