summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 02:09:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 02:09:36 +0000
commit190815df670ff34c08b3f4c50bd6758b3338e8e3 (patch)
tree423d9000839b655b01b336d5036bb86784306dad /include/inspircd.h
parent11c5695f29d68fd881eb042075facad1f01bac9a (diff)
Add specialization for ConvToStr on a single char, return std::string(in,1) :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6276 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 678ebf0a5..9c53fdf41 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -106,6 +106,11 @@ inline std::string ConvToStr(const bool in)
return (in ? "1" : "0");
}
+inline std::string ConvToStr(char in)
+{
+ return std::string(in,1);
+}
+
template <class T> inline std::string ConvToStr(const T &in)
{
std::stringstream tmp;