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

Submitted-by: Willem Jan Withagen <wjw@digiware.nl>
main
Willem Jan Withagen 9 years ago committed by Islam AbdelRahman
parent faa7eb3b99
commit b726bf5961
  1. 2
      util/string_util.h

@ -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

Loading…
Cancel
Save