From 97eedfc2406a8dbdf894df755e47b918c4a52fd9 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 26 Feb 2012 12:21:59 +0000 Subject: [PATCH] Warning fix for gcc git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@414 860be788-9bd5-4423-9f1e-828f051e677b --- src/tests/turtle_test/constraints_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/turtle_test/constraints_test.cpp b/src/tests/turtle_test/constraints_test.cpp index 6139e2b..d15d643 100644 --- a/src/tests/turtle_test/constraints_test.cpp +++ b/src/tests/turtle_test/constraints_test.cpp @@ -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";