git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@263 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2011-03-18 21:50:41 +00:00
parent fc53abcea0
commit f0dd37cb39
3 changed files with 30 additions and 30 deletions

View file

@ -232,14 +232,14 @@ namespace detail2
return s << ')'; return s << ')';
} }
template< typename T > //template< typename T >
BOOST_DEDUCED_TYPENAME boost::enable_if< //BOOST_DEDUCED_TYPENAME boost::enable_if<
boost::function_types::is_callable_builtin< T >, stream& // boost::function_types::is_callable_builtin< T >, stream&
>::type //>::type
operator<<( stream& s, const T* ) //operator<<( stream& s, const T& )
{ //{
return s << '?'; // return s << '?';
} //}
} }
#endif // #ifndef MOCK_LOG_HPP_INCLUDED #endif // #ifndef MOCK_LOG_HPP_INCLUDED

View file

@ -429,17 +429,17 @@ BOOST_AUTO_TEST_CASE( false_positive_container_serialization_can_still_be_overri
BOOST_CHECK_EQUAL( "false_positive_container", to_string( false_positive_container() ) ); BOOST_CHECK_EQUAL( "false_positive_container", to_string( false_positive_container() ) );
} }
namespace //namespace
{ //{
void callable_builtin() // void callable_builtin()
{} // {}
} //}
//
BOOST_AUTO_TEST_CASE( callable_builtin_yields_an_interrogation_mark_when_serialized_with_conversions ) //BOOST_AUTO_TEST_CASE( callable_builtin_yields_an_interrogation_mark_when_serialized_with_conversions )
{ //{
BOOST_CHECK_EQUAL( "?", to_string( callable_builtin ) ); // BOOST_CHECK_EQUAL( "?", to_string( callable_builtin ) );
BOOST_CHECK_EQUAL( "?", to_string( &callable_builtin ) ); // BOOST_CHECK_EQUAL( "?", to_string( &callable_builtin ) );
} //}
namespace namespace
{ {

View file

@ -425,17 +425,17 @@ BOOST_AUTO_TEST_CASE( false_positive_container_serialization_can_still_be_overri
BOOST_CHECK_EQUAL( "false_positive_container", to_string( false_positive_container() ) ); BOOST_CHECK_EQUAL( "false_positive_container", to_string( false_positive_container() ) );
} }
namespace //namespace
{ //{
void callable_builtin() // void callable_builtin()
{} // {}
} //}
//
BOOST_AUTO_TEST_CASE( callable_builtin_yields_an_interrogation_mark_when_serialized_without_conversions ) //BOOST_AUTO_TEST_CASE( callable_builtin_yields_an_interrogation_mark_when_serialized_without_conversions )
{ //{
BOOST_CHECK_EQUAL( "?", to_string( callable_builtin ) ); // BOOST_CHECK_EQUAL( "?", to_string( callable_builtin ) );
BOOST_CHECK_EQUAL( "?", to_string( &callable_builtin ) ); // BOOST_CHECK_EQUAL( "?", to_string( &callable_builtin ) );
} //}
namespace namespace
{ {