From 190815df670ff34c08b3f4c50bd6758b3338e8e3 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 9 Jan 2007 02:09:36 +0000 Subject: 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 --- include/inspircd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 inline std::string ConvToStr(const T &in) { std::stringstream tmp; -- cgit v1.2.3