mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
This is a bit better
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6274 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
8ac4e727cc
commit
525b7e3409
@ -80,21 +80,31 @@ template<typename N> std::string ConvNumeric(N in)
|
||||
return std::reverse(res,out);
|
||||
}
|
||||
|
||||
template <typename T> inline std::string ConvToStr(const int in)
|
||||
template <int> inline std::string ConvToStr(const int in)
|
||||
{
|
||||
return ConvNumeric(in);
|
||||
}
|
||||
|
||||
template <typename T> inline std::string ConvToStr(const long in)
|
||||
template <long> inline std::string ConvToStr(const long in)
|
||||
{
|
||||
return ConvNumeric(in);
|
||||
}
|
||||
|
||||
template <typename T> inline std::string ConvToStr(const unsigned long in)
|
||||
template <unsigned long> inline std::string ConvToStr(const unsigned long in)
|
||||
{
|
||||
return ConvNumeric(in);
|
||||
}
|
||||
|
||||
template <const char*> inline std::string ConvToStr(const char* in)
|
||||
{
|
||||
return in;
|
||||
}
|
||||
|
||||
template <bool> inline std::string ConvToStr(const long in)
|
||||
{
|
||||
return (in ? "1" : "0");
|
||||
}
|
||||
|
||||
template <typename T> inline std::string ConvToStr(const T &in)
|
||||
{
|
||||
std::stringstream tmp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user