Fix build error on some platform

This commit is contained in:
Tindy X committed 2020-01-07 15:48:39 +08:00
1 parent b94dce44ed
commit bebefd9511
5 files changed
+21 -23

No files matched your search

+4 -7
View File
@@ -82,14 +82,11 @@ template <typename T> static inline void eraseElements(T &target)
#ifndef HAVE_TO_STRING
namespace std
{
namespace __cxx11
template <typename T> std::string to_string(const T& n)
{
template <typename T> std::string to_string(const T& n)
{
std::ostringstream ss;
ss << n;
return ss.str();
}
std::ostringstream ss;
ss << n;
return ss.str();
}
}
#endif // HAVE_TO_STRING