The type safe and portable way Convert any type for which an ostream << operator is defined. template std::string to_string(const T &t) { std::stringstream ss; ss << t; return ss.str(); } Use std::string::c_str() to retrieve char*
O
owillebo
@owillebo