mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
helpers: add to_string() for char
This commit is contained in:
@@ -1238,6 +1238,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
|
||||
|
||||
/**
|
||||
|
@@ -131,6 +131,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)
|
||||
|
Reference in New Issue
Block a user