mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Worked around gcc bug, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40146
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@545 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
77a99b8893
commit
b4755bdaf4
1 changed files with 8 additions and 1 deletions
|
|
@ -32,7 +32,14 @@
|
|||
namespace
|
||||
{
|
||||
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;
|
||||
s << mock::format( t );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue