helpers: add to_string() for char

Origin commit data
------------------
Commit: 7679168b61
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-05 (Sun, 05 May 2019)
This commit is contained in:
2019-05-05 16:00:00 +02:00
committed by vanhofen
parent a9716c7e2e
commit ea88fa6545
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)