diff --git a/example/simplepullreader/simplepullreader.cpp b/example/simplepullreader/simplepullreader.cpp index 0b11b40..98566e6 100644 --- a/example/simplepullreader/simplepullreader.cpp +++ b/example/simplepullreader/simplepullreader.cpp @@ -7,7 +7,9 @@ using namespace std; // If you can require C++11, you could use std::to_string here template std::string stringify(T x) { - return (std::stringstream() << x).str(); + std::stringstream ss; + ss << x; + return ss.str(); } struct MyHandler {