mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
system/helpers: allow to build with c++11 compilers
This commit is contained in:
@@ -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":
|
||||
|
Reference in New Issue
Block a user