Return to Snippet

Revision: 1423
at October 6, 2006 12:55 by yuconner


Updated Code
#include <string>
#include <sstream>

template <class T> std::string TToStr( const T &t )
{
    std::ostringstream oss;
    oss << t;
    return std::string (oss.str());
}

Revision: 1422
at October 5, 2006 22:20 by yuconner


Initial Code
#include <string>
#include <sstream>

template <class T> std::string TToStr( const T &t )
{
    std::ostringstream oss;
    oss << t;
    return std::string (oss.str());
}

Initial URL

                                

Initial Description

                                

Initial Title
template to string

Initial Tags

                                

Initial Language
C++