From 73fadc7151a884fa3221a04ab98f47ce26bdb780 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 1 May 2011 08:54:25 +0000 Subject: [PATCH] Cleanup git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@302 860be788-9bd5-4423-9f1e-828f051e677b --- src/libraries/turtle/log.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/libraries/turtle/log.hpp b/src/libraries/turtle/log.hpp index b7c43e2..46a7077 100644 --- a/src/libraries/turtle/log.hpp +++ b/src/libraries/turtle/log.hpp @@ -66,8 +66,8 @@ namespace detail3 virtual void serialize( std::ostream& s ) const { // if an error about an ambiguous conversion is generated by the - // line below it means the easiest solution is likely to be to add - // a serialization operator to a mock::stream for T + // line below the solution is to add a serialization operator to a + // mock::stream for T s << *t_; } const T* t_; @@ -106,7 +106,8 @@ namespace detail3 template< typename T > BOOST_DEDUCED_TYPENAME boost::disable_if< - boost::function_types::is_callable_builtin< T >, stream& + boost::function_types::is_callable_builtin< T >, + stream& >::type operator<<( stream& s, const T& t ) { @@ -123,8 +124,8 @@ namespace detail2 void serialize( stream& s, const T& t ) { // if an error about an ambiguous conversion is generated by the - // line below it means the easiest solution is likely to be to add - // a serialization operator to a mock::stream for T + // line below the solution is to add a serialization operator to a + // mock::stream for T s << t; } inline void serialize( stream& s, bool b ) @@ -136,7 +137,7 @@ namespace detail2 { s << '"' << str << '"'; } - inline void serialize( stream& s, const char* str ) + inline void serialize( stream& s, const char* const str ) { s << '"' << str << '"'; }