Warning fix for gcc

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@414 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-02-26 12:21:59 +00:00
parent 6e1e22c559
commit 97eedfc240

View file

@ -276,10 +276,10 @@ BOOST_AUTO_TEST_CASE( contain_with_const_char_ptr )
BOOST_CHECK( ! mock::contain( "not found" ).f_( "this is a string" ) );
BOOST_CHECK( ! mock::contain( "not found" ).f_( std::string( "this is a string" ) ) );
{
char* s;
const char* s;
mock::constraint<
mock::detail::contain<
boost::reference_wrapper< char* const >
boost::reference_wrapper< const char* const >
>
> c = mock::contain( boost::cref( s ) );
s = "string";