19 lines
374 B
C++
19 lines
374 B
C++
#pragma once
|
|
|
|
#include<sstream>
|
|
|
|
#ifdef __MINGW32__
|
|
namespace std {
|
|
template<typename T>
|
|
std::string to_string(T value) {
|
|
//create an output string stream
|
|
std::ostringstream os;
|
|
|
|
//throw the value into the string stream
|
|
os << value;
|
|
|
|
//convert the string stream into a string and return
|
|
return os.str();
|
|
}
|
|
}
|
|
#endif |