Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-11-17 16:21:54


Author: nesotto
Date: 2007-11-17 16:21:53 EST (Sat, 17 Nov 2007)
New Revision: 41181
URL: http://svn.boost.org/trac/boost/changeset/41181

Log:
removed some warnings
Text files modified:
   trunk/libs/range/test/iterator_pair.cpp | 6 +++---
   trunk/libs/range/test/std_container.cpp | 4 ++--
   2 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/range/test/iterator_pair.cpp
==============================================================================
--- trunk/libs/range/test/iterator_pair.cpp (original)
+++ trunk/libs/range/test/iterator_pair.cpp 2007-11-17 16:21:53 EST (Sat, 17 Nov 2007)
@@ -65,17 +65,17 @@
     BOOST_CHECK( begin( pair ) == pair.first );
     BOOST_CHECK( end( pair ) == pair.second );
     BOOST_CHECK( empty( pair ) == (pair.first == pair.second) );
- BOOST_CHECK( size( pair ) == std::size_t( std::distance( pair.first, pair.second ) ) );
+ BOOST_CHECK( size( pair ) == std::distance( pair.first, pair.second ) );
     
     BOOST_CHECK( begin( const_pair ) == const_pair.first );
     BOOST_CHECK( end( const_pair ) == const_pair.second );
     BOOST_CHECK( empty( const_pair ) == (const_pair.first == const_pair.second) );
- BOOST_CHECK( size( const_pair ) == std::size_t( std::distance( const_pair.first, const_pair.second ) ) );
+ BOOST_CHECK( size( const_pair ) == std::distance( const_pair.first, const_pair.second ) );
 
     BOOST_CHECK( begin( constness_pair ) == constness_pair.first );
     BOOST_CHECK( end( constness_pair ) == constness_pair.second );
     BOOST_CHECK( empty( constness_pair ) == (constness_pair.first == const_pair.second) );
- BOOST_CHECK( size( constness_pair ) == std::size_t( std::distance( constness_pair.first, constness_pair.second ) ) );
+ BOOST_CHECK( size( constness_pair ) == std::distance( constness_pair.first, constness_pair.second ) );
 
 }
 

Modified: trunk/libs/range/test/std_container.cpp
==============================================================================
--- trunk/libs/range/test/std_container.cpp (original)
+++ trunk/libs/range/test/std_container.cpp 2007-11-17 16:21:53 EST (Sat, 17 Nov 2007)
@@ -48,12 +48,12 @@
     BOOST_CHECK( begin( vec ) == vec.begin() );
     BOOST_CHECK( end( vec ) == vec.end() );
     BOOST_CHECK( empty( vec ) == vec.empty() );
- BOOST_CHECK( size( vec ) == vec.size() );
+ BOOST_CHECK( (std::size_t)size( vec ) == vec.size() );
     
     BOOST_CHECK( begin( cvec ) == cvec.begin() );
     BOOST_CHECK( end( cvec ) == cvec.end() );
     BOOST_CHECK( empty( cvec ) == cvec.empty() );
- BOOST_CHECK( size( cvec ) == cvec.size() );
+ BOOST_CHECK( (std::size_t)size( cvec ) == cvec.size() );
 
 }
 


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