Skip to content

Commit

Permalink
Update io.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aarikpokras authored Dec 13, 2024
1 parent beda4ef commit 1d96008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/io.cxlbund/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ struct str {
}
friend str operator+(const str& l, const str& r) {
std::vector<std::string> ret;

ret.push_back("");
ret.push_back("");
ret[0] = l.c[0].c_str();

ret[0] = l.c[0].c_str();
ret[1] = r.c[0].c_str();
std::string ret_f = ret[0] + ret[1]; // Take advantage of std::string's concat.
return str(ret_f); // This uses the std::string constructor
Expand Down

0 comments on commit 1d96008

Please sign in to comment.