>>175
それだったらここまでやろうよ
template<typename T> inline std::string toString(T n)
{
  return (std::ostringstream() << n).str();
}