]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/convto.h
Pass an irc::socket::sockaddrs to SocketEngine::Connect().
[user/henk/code/inspircd.git] / include / convto.h
index eaf14f6dc549972faa951fe437b58123e78148bc..c306283fc7e85a4333164239a22c51db479cf15d 100644 (file)
@@ -100,9 +100,9 @@ template<typename T> inline long ConvToInt(const T& in)
        return atol(tmp.str().c_str());
 }
 
-inline uint64_t ConvToUInt64(const std::string& in)
+template<typename TOut> inline TOut ConvToNum(const std::string& in)
 {
-       uint64_t ret;
+       TOut ret;
        std::istringstream tmp(in);
        if (!(tmp >> ret))
                return 0;