Skip to content

Commit b66ae98

Browse files
committed
edits
1 parent bb0bfec commit b66ae98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp2rust/converter/mapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ std::string GetExprMapKey(const std::string &str) {
4444
// Extract the function name from something like
4545
// const T1 & std::foo<T1, T2>::fn_name(args)
4646
auto n = str.find_first_of('(');
47-
if (n == std::string::npos) { // e.g. std::cerr
48-
return str;
47+
if (n == std::string::npos) {
48+
n = str.size();
4949
}
5050

5151
// Walk backwards from '(' tracking <> depth:

0 commit comments

Comments
 (0)