/ Published in: C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <string> #include <sstream> template <class T> std::string TToStr( const T &t ) { std::ostringstream oss; oss << t; return std::string (oss.str()); }