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:
2019-05-05 16:00:00 +02:00
committed by vanhofen
parent 8da67333af
commit 6adc1f6a3a
2 changed files with 8 additions and 0 deletions

View File

@@ -1411,6 +1411,13 @@ std::string to_string(unsigned long long i)
s << i;
return s.str();
}
std::string to_string(char i)
{
std::stringstream s;
s << i;
return s.str();
}
#endif
/**

View File

@@ -134,6 +134,7 @@ std::string to_string(long);
std::string to_string(unsigned long);
std::string to_string(long long);
std::string to_string(unsigned long long);
std::string to_string(char);
#else
/* hack... */
#define to_string(x) std::to_string(x)