diff --git a/lib/Global.hpp b/lib/Global.hpp index 5f16246..a8a83e6 100644 --- a/lib/Global.hpp +++ b/lib/Global.hpp @@ -182,6 +182,16 @@ inline int strTo(const std::string &str) { return (int)(strtol(str.c_str(), (char **)NULL, 10)); } +template <> +inline long strTo(const std::string &str) +{ + return strtol(str.c_str(), (char **)NULL, 10); +} +template <> +inline std::string strTo(const std::string &str) +{ + return str; +} template inline std::string strFrom(const T x)