|
Boost : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-09-08 03:47:49
Attached is a patch which skips some tests for Tru64/CXX which does not yet
conform to the resolution for DR#179. (See
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#179 for
details.) Ok to commit?
Markus
Index: iterator_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/ptr_container/test/iterator_test.cpp,v
retrieving revision 1.8
diff -u -w -r1.8 iterator_test.cpp
--- iterator_test.cpp 15 Jun 2005 19:32:58 -0000 1.8
+++ iterator_test.cpp 8 Sep 2005 08:41:56 -0000
@@ -47,10 +47,15 @@
ptr_map<int,int>::iterator map_mutable_i = map.begin();
ptr_map<int,int>::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<int,int>& rmap = map;
map_const_i = rmap.begin();
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk