mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +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;
|
s << i;
|
||||||
return s.str();
|
return s.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string to_string(char i)
|
||||||
|
{
|
||||||
|
std::stringstream s;
|
||||||
|
s << i;
|
||||||
|
return s.str();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -131,6 +131,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