system/helpers: allow to build with c++11 compilers

This commit is contained in:
Stefan Seyfried
2016-10-22 12:23:09 +02:00
committed by svenhoefer
parent 645da64839
commit ae345d11d3
2 changed files with 7 additions and 0 deletions

View File

@@ -1125,6 +1125,7 @@ std::vector<std::string> split(const std::string &s, char delim)
return vec;
}
#if __cplusplus <= 201103L
std::string to_string(int i)
{
std::stringstream s;
@@ -1166,6 +1167,7 @@ std::string to_string(unsigned long long i)
s << i;
return s.str();
}
#endif
/**
* C++ version 0.4 std::string style "itoa":