More C++98 fixes

This commit is contained in:
StilesCrisis 2017-02-04 01:18:46 -08:00
parent 6288d95d1e
commit a11ec69796

View File

@ -7,7 +7,9 @@ using namespace std;
// If you can require C++11, you could use std::to_string here // If you can require C++11, you could use std::to_string here
template <typename T> std::string stringify(T x) { template <typename T> std::string stringify(T x) {
return (std::stringstream() << x).str(); std::stringstream ss;
ss << x;
return ss.str();
} }
struct MyHandler { struct MyHandler {