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

View File

@ -57,11 +57,18 @@ void check_iterator_range()
BOOST_CHECK( !r.empty() ); BOOST_CHECK( !r.empty() );
BOOST_CHECK( !r2.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 ) if( !r )
BOOST_CHECK( false ); BOOST_CHECK( false );
if( !r2 ) if( !r2 )
BOOST_CHECK( false ); BOOST_CHECK( false );
#endif
BOOST_CHECK_EQUAL( r.size(), size( r ) ); BOOST_CHECK_EQUAL( r.size(), size( r ) );
BOOST_CHECK_EQUAL( r2.size(), size( r2 ) ); BOOST_CHECK_EQUAL( r2.size(), size( r2 ) );