D
david0002004
Here is the code:
template <class T>
inline std::string To_String (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}
When I uses this function to convert an int to string, I got a core
dump. But I couldn't see anything wrong in the function. Thanks for
your help.
template <class T>
inline std::string To_String (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}
When I uses this function to convert an int to string, I got a core
dump. But I couldn't see anything wrong in the function. Thanks for
your help.