fix std numeric conversions errors for GCC 5.1

This commit is contained in:
Jinhao
2015-12-15 15:51:29 +08:00
parent 2ac3b8128d
commit 1d9b75b1c2
3 changed files with 31 additions and 7 deletions

View File

@@ -298,6 +298,7 @@ namespace std
#endif //STD_NUMERIC_CONVERSIONS_NOT_SUPPORTED
#ifdef STD_TO_STRING_NOT_SUPPORTED
#include <sstream>
namespace std
{
std::string to_string(double v)
@@ -362,7 +363,13 @@ namespace std
ss << v;
return ss.str();
}
}
#endif // STD_TO_STRING_NOT_SUPPORTED
#ifdef STD_TO_WSTRING_NOT_SUPPORTED
#include <sstream>
namespace std
{
std::wstring to_wstring(double v)
{
std::wstringstream ss;