Skip to content

Commit a11ec69

Browse files
StilesCrisisStilesCrisis
authored andcommitted
More C++98 fixes
1 parent 6288d95 commit a11ec69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/simplepullreader/simplepullreader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ using namespace std;
77

88
// If you can require C++11, you could use std::to_string here
99
template <typename T> std::string stringify(T x) {
10-
return (std::stringstream() << x).str();
10+
std::stringstream ss;
11+
ss << x;
12+
return ss.str();
1113
}
1214

1315
struct MyHandler {

0 commit comments

Comments
 (0)