]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
This is a bit better
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 9 Jan 2007 01:36:51 +0000 (01:36 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 9 Jan 2007 01:36:51 +0000 (01:36 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6274 e03df62e-2008-0410-955e-edbf42e46eb7

include/inspircd.h

index efd5a898bff2a9bf4edfe503aff375a4aca6ebcd..5e9bed45dea9afd4b490a8ab979d239e95a19f07 100644 (file)
@@ -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;