Skip to content

Commit 0c5b742

Browse files
improve type string parsing
1 parent d90c221 commit 0c5b742

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,16 @@ bool split_comma_saparated_types(const std::string& name,
515515
break;
516516
}
517517
case '>': {
518-
if (matching_angular_brackets == 1) {
518+
if (matching_angular_brackets > 0) {
519519
types.push_back(
520520
trim(trimed_name.substr(start_pos, end_pos - start_pos + 1)));
521521
start_pos = end_pos + 1;
522522
} else if (matching_angular_brackets < 1) {
523523
types.clear();
524524
return false;
525525
}
526+
start_pos++;
527+
end_pos++;
526528
matching_angular_brackets--;
527529
break;
528530
}

0 commit comments

Comments
 (0)