git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@545 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-09-01 17:22:32 +00:00
parent 77a99b8893
commit b4755bdaf4

View file

@ -32,7 +32,14 @@
namespace namespace
{ {
template< typename T > template< typename T >
std::string to_string( T t ) std::string to_string( const T& t )
{
std::stringstream s;
s << mock::format( t );
return s.str();
}
template< typename T >
std::string to_string( T* t )
{ {
std::stringstream s; std::stringstream s;
s << mock::format( t ); s << mock::format( t );