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

Origin commit data
------------------
Commit: 3684680cb2
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)
This commit is contained in:
Stefan Seyfried
2016-10-22 12:23:09 +02:00
parent 59e3c9c3f4
commit e1f0169491
2 changed files with 7 additions and 0 deletions

View File

@@ -1086,6 +1086,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;
@@ -1127,6 +1128,7 @@ std::string to_string(unsigned long long i)
s << i;
return s.str();
}
#endif
/**
* C++ version 0.4 std::string style "itoa":