diff --git a/test/array.cpp b/test/array.cpp index 3820251..e38f61b 100755 --- a/test/array.cpp +++ b/test/array.cpp @@ -40,22 +40,22 @@ void check_array() // BOOST_RANGE_NO_STATIC_ASSERT -#if !defined( __BORLANDC__ ) || !( _MSC_VER <= 1300 ) - BOOST_STATIC_ASSERT(( is_same< value_type_of::type, int >::value )); - BOOST_STATIC_ASSERT(( is_same< iterator_of::type, int* >::value )); - BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const int* >::value )); - BOOST_STATIC_ASSERT(( is_same< difference_type_of::type, std::ptrdiff_t >::value )); - BOOST_STATIC_ASSERT(( is_same< size_type_of::type, std::size_t >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, int* >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); +#if !defined( __BORLANDC__ ) + BOOST_STATIC_ASSERT(( is_same< value_type_of::type, int >::value )); + BOOST_STATIC_ASSERT(( is_same< iterator_of::type, int* >::value )); + BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const int* >::value )); + BOOST_STATIC_ASSERT(( is_same< difference_type_of::type, std::ptrdiff_t >::value )); + BOOST_STATIC_ASSERT(( is_same< size_type_of::type, std::size_t >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, int* >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); - BOOST_STATIC_ASSERT(( is_same< value_type_of::type, const int >::value )); - BOOST_STATIC_ASSERT(( is_same< iterator_of::type, const int* >::value )); - BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const int* >::value )); - BOOST_STATIC_ASSERT(( is_same< difference_type_of::type, std::ptrdiff_t >::value )); - BOOST_STATIC_ASSERT(( is_same< size_type_of::type, std::size_t >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); + BOOST_STATIC_ASSERT(( is_same< value_type_of::type, const int >::value )); + BOOST_STATIC_ASSERT(( is_same< iterator_of::type, const int* >::value )); + BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const int* >::value )); + BOOST_STATIC_ASSERT(( is_same< difference_type_of::type, std::ptrdiff_t >::value )); + BOOST_STATIC_ASSERT(( is_same< size_type_of::type, std::size_t >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); #endif BOOST_CHECK_EQUAL( begin( my_array ), my_array ); diff --git a/test/string.cpp b/test/string.cpp index 0c1706e..650bf57 100755 --- a/test/string.cpp +++ b/test/string.cpp @@ -74,13 +74,13 @@ void check_char() BOOST_STATIC_ASSERT(( is_same< value_type_of::type, char>::value )); - BOOST_STATIC_ASSERT(( is_same< iterator_of::type, char* >::value )); - BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const char* >::value )); + BOOST_STATIC_ASSERT(( is_same< iterator_of::type, char* >::value )); + BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const char* >::value )); BOOST_STATIC_ASSERT(( is_same< difference_type_of::type, ::std::ptrdiff_t >::value )); BOOST_STATIC_ASSERT(( is_same< size_type_of::type, std::size_t >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, char* >::value )); - BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const char* >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, char* >::value )); + BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const char* >::value )); BOOST_CHECK_EQUAL( begin( char_s ), char_s ); std::size_t sz = size( char_s ); @@ -90,8 +90,8 @@ void check_char() BOOST_CHECK_EQUAL( sz, std::char_traits::length( char_s ) ); BOOST_CHECK_EQUAL( begin( my_string ), my_string ); - const char* end2 = begin( my_string ) + size( my_string ); - const char* end3 = end( my_string ); + iterator_of::type end2 = begin( my_string ) + size( my_string ); + iterator_of::type end3 = end( my_string ); BOOST_CHECK_EQUAL( end3, end2 ); BOOST_CHECK_EQUAL( empty( my_string ), (my_string == 0 || my_string[0] == char()) ); BOOST_CHECK_EQUAL( size( my_string ), my_string_length );