From b4755bdaf47564d67e04ba88714b21942a8a79e8 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sat, 1 Sep 2012 17:22:32 +0000 Subject: [PATCH] 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 --- test/test_log.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/test_log.cpp b/test/test_log.cpp index 0d0fbcc..cad9229 100644 --- a/test/test_log.cpp +++ b/test/test_log.cpp @@ -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 );