diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 02:09:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-09 02:09:36 +0000 |
commit | 190815df670ff34c08b3f4c50bd6758b3338e8e3 (patch) | |
tree | 423d9000839b655b01b336d5036bb86784306dad /include/inspircd.h | |
parent | 11c5695f29d68fd881eb042075facad1f01bac9a (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.h | 5 |
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; |