Add some new constructors to CString

One of these converts bools into "true" / "false". Isn't that really useful?


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1243 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-10-09 17:11:06 +00:00
parent 47099a9d88
commit f6efc88868
+2
View File
@@ -59,6 +59,7 @@ public:
ESQL
} EEscape;
explicit CString(bool b) : string(b ? "true" : "false") {}
explicit CString(char c);
explicit CString(unsigned char c);
explicit CString(short i);
@@ -74,6 +75,7 @@ public:
CString() : string() {}
CString(const char* c) : string(c) {}
CString(const char* c, size_t l) : string(c, l) {}
CString(const string& s) : string(s) {}
virtual ~CString() {}