|
Boost-Commit : |
From: nesotto_at_[hidden]
Date: 2007-11-09 08:31:44
Author: nesotto
Date: 2007-11-09 08:31:43 EST (Fri, 09 Nov 2007)
New Revision: 40966
URL: http://svn.boost.org/trac/boost/changeset/40966
Log:
minor tweaks to avoid warnings ... extension mechanism updated to follow new protocol
Text files modified:
trunk/libs/range/test/algorithm_example.cpp | 4 ++--
trunk/libs/range/test/array.cpp | 2 +-
trunk/libs/range/test/extension_mechanism.cpp | 1 -
3 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/libs/range/test/algorithm_example.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_example.cpp (original)
+++ trunk/libs/range/test/algorithm_example.cpp 2007-11-09 08:31:43 EST (Fri, 09 Nov 2007)
@@ -64,14 +64,14 @@
//
// usage
//
- const unsigned N = 5;
+ const int N = 5;
std::vector<int> my_vector;
int values[] = { 1,2,3,4,5,6,7,8,9 };
my_vector.assign( values, values + 9 );
typedef std::vector<int>::iterator iterator;
std::pair<iterator,iterator> my_view( boost::begin( my_vector ),
boost::begin( my_vector ) + N );
- BOOST_CHECK_EQUAL( my_generic_replace( my_vector, 4, 2 ), 3u );
+ BOOST_CHECK_EQUAL( my_generic_replace( my_vector, 4, 2 ), 3 );
BOOST_CHECK_EQUAL( my_generic_replace( my_view, 4, 2 ), N );
}
Modified: trunk/libs/range/test/array.cpp
==============================================================================
--- trunk/libs/range/test/array.cpp (original)
+++ trunk/libs/range/test/array.cpp 2007-11-09 08:31:43 EST (Fri, 09 Nov 2007)
@@ -63,7 +63,7 @@
BOOST_CHECK_EQUAL( empty( ca ),false );
const char A[] = "\0A";
- BOOST_CHECK_EQUAL( boost::size(A), 3u );
+ BOOST_CHECK_EQUAL( boost::size(A), 3 );
}
using boost::unit_test::test_suite;
Modified: trunk/libs/range/test/extension_mechanism.cpp
==============================================================================
--- trunk/libs/range/test/extension_mechanism.cpp (original)
+++ trunk/libs/range/test/extension_mechanism.cpp 2007-11-09 08:31:43 EST (Fri, 09 Nov 2007)
@@ -44,7 +44,6 @@
typedef std::vector<int> data_t;
typedef data_t::iterator iterator;
typedef data_t::const_iterator const_iterator;
- typedef data_t::size_type size_type;
data_t vec;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk