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 );