*** empty log message ***

[SVN r24622]
This commit is contained in:
Thorsten Jørgen Ottosen
2004-08-20 19:26:34 +00:00
parent df504d811a
commit 4de4fbc46e
3 changed files with 11 additions and 4 deletions

View File

@ -35,7 +35,7 @@ namespace range_detail
template< typename C >
inline bool empty( const C& c )
{
return begin( c ) == end( c );
return boost::begin( c ) == boost::end( c );
}
//////////////////////////////////////////////////////////////////////

View File

@ -37,7 +37,7 @@ namespace range_detail
//////////////////////////////////////////////////////////////////////
template< typename C >
inline BOOST_RANGE_DEDUCED_TYPENAME C::size_type
inline BOOST_DEDUCED_TYPENAME C::size_type
size( const C& c )
{
return c.size();
@ -83,7 +83,7 @@ namespace range_detail
return range_detail::str_size( s );
}
} // namespace 'range'
} // namespace 'range_detail'
template< class T >
inline BOOST_DEDUCED_TYPENAME range_size<T>::type size( const T& r )

View File

@ -58,10 +58,17 @@ void check_iterator_range()
BOOST_CHECK( !r.empty() );
BOOST_CHECK( !r2.empty() );
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
if( !(bool)r )
BOOST_CHECK( false );
if( !(bool)r2 )
BOOST_CHECK( false );
#else
if( !r )
BOOST_CHECK( false );
if( !r2 )
BOOST_CHECK( false );
#endif
BOOST_CHECK_EQUAL( r.size(), size( r ) );
BOOST_CHECK_EQUAL( r2.size(), size( r2 ) );