Miscellany
public text v1 · immutable#include <sstream>
#include <string>
#include <iostream>
template <typename T>
std::string to_string(const T &elem)
{
std::stringstream tmp;
tmp << elem;
return tmp.str();
}
int main()
{
std::cout << to_string<int>(10);
}