#ifndef TOSTR_H #define TOSTR_H #include #include template std::string toString(const T& aT) { std::ostringstream oss; oss << aT; return oss.str(); } template std::string toString(const std::pair& aT) { std::ostringstream oss; oss << "(" << aT.first << ", " << aT.second << ")"; return oss.str(); } #endif /*TOSTR_H */