#ifndef MAKESTRING_H #define MAKESTRING_H #include #include inline void fill_ostream(std::ostringstream&) { } template void fill_ostream(std::ostringstream& stream, const T& first, const Args&... rest) { stream << first; fill_ostream(stream, rest...); } template std::string make_string(const T&... args) { std::ostringstream buf; fill_ostream(buf, args...); return buf.str(); } #endif // MAKESTRING_H