From 0b329e4aedd3f9322ef553a2cc254aa547d63e24 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sat, 9 Apr 2011 20:58:03 +0000 Subject: [PATCH] Cleanup git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@289 860be788-9bd5-4423-9f1e-828f051e677b --- src/libraries/turtle/check.hpp | 4 ++-- src/libraries/turtle/log.hpp | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/libraries/turtle/check.hpp b/src/libraries/turtle/check.hpp index 74db418..4c908c4 100644 --- a/src/libraries/turtle/check.hpp +++ b/src/libraries/turtle/check.hpp @@ -29,7 +29,7 @@ namespace detail { boost::require_boolean_expr( // if an error is generated by the line below it means - // an argument passed to 'with' was of the wrong type. + // an argument passed to 'with' was of the wrong type functor_accepts( actual_argument_type ) ); } @@ -47,7 +47,7 @@ namespace detail { boost::require_boolean_expr( // if an error is generated by the line below it means - // an argument passed to 'with' was of the wrong type. + // an argument passed to 'with' was of the wrong type actual_argument_type == expected_argument_type ); } diff --git a/src/libraries/turtle/log.hpp b/src/libraries/turtle/log.hpp index f521f8f..b7c43e2 100644 --- a/src/libraries/turtle/log.hpp +++ b/src/libraries/turtle/log.hpp @@ -65,8 +65,9 @@ namespace detail3 {} virtual void serialize( std::ostream& s ) const { - // if it fails here because ambiguous stuff - // -> add operator<< to mock::stream for 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 s << *t_; } const T* t_; @@ -121,8 +122,9 @@ namespace detail2 template< typename T > void serialize( stream& s, const T& t ) { - // if it fails here because ambiguous stuff - // -> add operator<< to mock::stream for 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 s << t; } inline void serialize( stream& s, bool b )