mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
helpers: add to_string() for char
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7679168b61
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-05 (Sun, 05 May 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1411,6 +1411,13 @@ std::string to_string(unsigned long long i)
|
|||||||
s << i;
|
s << i;
|
||||||
return s.str();
|
return s.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string to_string(char i)
|
||||||
|
{
|
||||||
|
std::stringstream s;
|
||||||
|
s << i;
|
||||||
|
return s.str();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -134,6 +134,7 @@ std::string to_string(long);
|
|||||||
std::string to_string(unsigned long);
|
std::string to_string(unsigned long);
|
||||||
std::string to_string(long long);
|
std::string to_string(long long);
|
||||||
std::string to_string(unsigned long long);
|
std::string to_string(unsigned long long);
|
||||||
|
std::string to_string(char);
|
||||||
#else
|
#else
|
||||||
/* hack... */
|
/* hack... */
|
||||||
#define to_string(x) std::to_string(x)
|
#define to_string(x) std::to_string(x)
|
||||||
|
Reference in New Issue
Block a user