FreeBSD does not have std::to_string (#1190)

Submitted-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Willem Jan Withagen 2016-06-29 16:35:17 +02:00 committed by Islam AbdelRahman
parent faa7eb3b99
commit b726bf5961

View File

@ -16,7 +16,7 @@ extern std::vector<std::string> StringSplit(const std::string& arg, char delim);
template <typename T>
inline std::string ToString(T value) {
#if !(defined OS_ANDROID) && !(defined CYGWIN)
#if !(defined OS_ANDROID) && !(defined CYGWIN) && !(defined OS_FREEBSD)
return std::to_string(value);
#else
// Andorid or cygwin doesn't support all of C++11, std::to_string() being