From 13e6d78fa82733eabf3443f167e01f0af9a94ffe Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 4 May 2002 11:03:42 +0000 Subject: [PATCH] Fixes for Borland C++ Builder 6 [SVN r13662] --- iterator_traits_test.cpp | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/iterator_traits_test.cpp b/iterator_traits_test.cpp index 716a411..3331d78 100644 --- a/iterator_traits_test.cpp +++ b/iterator_traits_test.cpp @@ -85,15 +85,17 @@ template ::pointer test_pt; + typedef typename boost::detail::iterator_traits::reference test_rt; BOOST_STATIC_ASSERT(( - boost::is_same< - typename boost::detail::iterator_traits::pointer, + ::boost::is_same< + test_pt, pointer >::value)); - + BOOST_STATIC_ASSERT(( - boost::is_same< - typename boost::detail::iterator_traits::reference, + ::boost::is_same< + test_rt, reference >::value)); }; @@ -102,15 +104,17 @@ template struct portable_tests { + typedef typename boost::detail::iterator_traits::difference_type test_dt; + typedef typename boost::detail::iterator_traits::iterator_category test_cat; BOOST_STATIC_ASSERT(( - boost::is_same< - typename boost::detail::iterator_traits::difference_type, + ::boost::is_same< + test_dt, difference_type >::value)); - + BOOST_STATIC_ASSERT(( - boost::is_same< - typename boost::detail::iterator_traits::iterator_category, + ::boost::is_same< + test_cat, category >::value)); }; @@ -121,9 +125,10 @@ template { + typedef typename boost::detail::iterator_traits::value_type test_vt; BOOST_STATIC_ASSERT(( - boost::is_same< - typename boost::detail::iterator_traits::value_type, + ::boost::is_same< + test_vt, value_type >::value)); };