X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconvto.h;h=c306283fc7e85a4333164239a22c51db479cf15d;hb=79892a727e323dcc4bce7e9c0cf3c99c5fe61706;hp=eaf14f6dc549972faa951fe437b58123e78148bc;hpb=c0aba5b728b0a921d95ec120aa638dab1520b42f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/convto.h b/include/convto.h index eaf14f6dc..c306283fc 100644 --- a/include/convto.h +++ b/include/convto.h @@ -100,9 +100,9 @@ template inline long ConvToInt(const T& in) return atol(tmp.str().c_str()); } -inline uint64_t ConvToUInt64(const std::string& in) +template inline TOut ConvToNum(const std::string& in) { - uint64_t ret; + TOut ret; std::istringstream tmp(in); if (!(tmp >> ret)) return 0;