diff options
| author | 2007-01-09 02:09:36 +0000 | |
|---|---|---|
| committer | 2007-01-09 02:09:36 +0000 | |
| commit | 190815df670ff34c08b3f4c50bd6758b3338e8e3 (patch) | |
| tree | 423d9000839b655b01b336d5036bb86784306dad /include | |
| parent | This is better, and proved working (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')
| -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; |
