dos2unix on some files

[SVN r34025]
This commit is contained in:
Thorsten Jørgen Ottosen
2006-05-19 10:30:02 +00:00
parent f885495565
commit 4a8987865e
3 changed files with 21 additions and 15 deletions

View File

@ -52,7 +52,9 @@ void check_iterator_pair()
BOOST_STATIC_ASSERT(( is_same< range_value<const_pair_tt>::type, BOOST_STATIC_ASSERT(( is_same< range_value<const_pair_tt>::type,
detail::iterator_traits<const_pair_t::first_type>::value_type>::value )); detail::iterator_traits<const_pair_t::first_type>::value_type>::value ));
BOOST_STATIC_ASSERT(( is_same< range_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value )); BOOST_STATIC_ASSERT(( is_same< range_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
BOOST_STATIC_ASSERT(( is_same< range_const_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value )); //
// This behavior is not supported with v2.
//BOOST_STATIC_ASSERT(( is_same< range_const_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
BOOST_STATIC_ASSERT(( is_same< range_difference<const_pair_tt>::type, BOOST_STATIC_ASSERT(( is_same< range_difference<const_pair_tt>::type,
detail::iterator_traits<const_pair_tt::first_type>::difference_type >::value )); detail::iterator_traits<const_pair_tt::first_type>::difference_type >::value ));
BOOST_STATIC_ASSERT(( is_same< range_size<const_pair_tt>::type, std::size_t >::value )); BOOST_STATIC_ASSERT(( is_same< range_size<const_pair_tt>::type, std::size_t >::value ));

View File

@ -53,10 +53,10 @@ void check_iterator()
BOOST_CHECK( std::distance( begin( p ), end( p ) ) == std::distance( rbegin( rp ), rend( rp ) ) ); BOOST_CHECK( std::distance( begin( p ), end( p ) ) == std::distance( rbegin( rp ), rend( rp ) ) );
BOOST_CHECK_EQUAL( &*begin( a ), &*( rend( a ) ) ); BOOST_CHECK_EQUAL( &*begin( a ), &*( rend( a ) - 1 ) );
BOOST_CHECK_EQUAL( &*( end( a ) ), &*rbegin( a ) ); BOOST_CHECK_EQUAL( &*( end( a ) - 1 ), &*rbegin( a ) );
BOOST_CHECK_EQUAL( &*begin( ca ), &*( rend( ca ) ) ); BOOST_CHECK_EQUAL( &*begin( ca ), &*( rend( ca ) - 1 ) );
BOOST_CHECK_EQUAL( &*( end( ca ) ), &*rbegin( ca ) ); BOOST_CHECK_EQUAL( &*( end( ca ) - 1 ), &*rbegin( ca ) );
} }

View File

@ -91,16 +91,20 @@ void check_sub_range()
r.size(); r.size();
s.size(); s.size();
irange singular_irange; //
BOOST_CHECK( singular_irange.empty() ); // As of range v2 not legal anymore.
BOOST_CHECK( singular_irange.size() == 0 ); //
//irange singular_irange;
srange singular_srange; //BOOST_CHECK( singular_irange.empty() );
BOOST_CHECK( singular_srange.empty() ); //BOOST_CHECK( singular_irange.size() == 0 );
BOOST_CHECK( singular_srange.size() == 0 ); //
//srange singular_srange;
BOOST_CHECK( empty( singular_irange ) ); //BOOST_CHECK( singular_srange.empty() );
BOOST_CHECK( empty( singular_srange ) ); //BOOST_CHECK( singular_srange.size() == 0 );
//
//BOOST_CHECK( empty( singular_irange ) );
//BOOST_CHECK( empty( singular_srange ) );
//
srange rr = make_iterator_range( str ); srange rr = make_iterator_range( str );
BOOST_CHECK( rr.equal( r ) ); BOOST_CHECK( rr.equal( r ) );