More C++98 fixes
This commit is contained in:
parent
6288d95d1e
commit
a11ec69796
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user