X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconvto.h;h=3332580edd491c23963f3d8286fc4f2f4bed0833;hb=36da0833c5512a72cbf500a2f5faef5a26ed8dae;hp=c306283fc7e85a4333164239a22c51db479cf15d;hpb=35b70631f0532a5828b04a8e0c02092a285f331a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/convto.h b/include/convto.h index c306283fc..3332580ed 100644 --- a/include/convto.h +++ b/include/convto.h @@ -89,17 +89,8 @@ template inline std::string ConvToStr(const T& in) return tmp.str(); } -/** Template function to convert any input type to any other type - * (usually an integer or numeric type) +/** Template function to convert a std::string to any numeric type. */ -template inline long ConvToInt(const T& in) -{ - std::stringstream tmp; - if (!(tmp << in)) - return 0; - return atol(tmp.str().c_str()); -} - template inline TOut ConvToNum(const std::string& in) { TOut ret;