From 68610a1c3d5cb6929db1190577d4134904713df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Sch=C3=B6pflin?= Date: Thu, 8 Sep 2005 13:24:21 +0000 Subject: [PATCH] Skip some tests which only work for STD library implementations conforming to the resolution of DR#179. [SVN r30874] --- test/iterator_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/iterator_test.cpp b/test/iterator_test.cpp index 9b1bd02..6df9749 100755 --- a/test/iterator_test.cpp +++ b/test/iterator_test.cpp @@ -47,10 +47,15 @@ void test_iterator() ptr_map::iterator map_mutable_i = map.begin(); ptr_map::const_iterator map_const_i = map.begin(); +#if !BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(70190006)) + // This only works for library implementations which conform to the + // proposed resolution of the C++ Standard Library DR#179. See + // http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#179. BOOST_CHECK( map_mutable_i == map_const_i ); BOOST_CHECK( ! ( map_mutable_i != map_const_i ) ); BOOST_CHECK( map_const_i == map_mutable_i ); BOOST_CHECK( ! ( map_const_i != map_mutable_i ) ); +#endif const ptr_map& rmap = map; map_const_i = rmap.begin();