From daac0f2ab107e2de599a909bc1560da358ef4cc8 Mon Sep 17 00:00:00 2001 From: "Jeffrey Lee Hellrung, Jr" Date: Mon, 8 Oct 2012 02:17:55 +0000 Subject: [PATCH 1/5] refs #6404 [SVN r80902] --- doc/iterator_facade_ref.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/iterator_facade_ref.rst b/doc/iterator_facade_ref.rst index c1baf9b..87c032a 100644 --- a/doc/iterator_facade_ref.rst +++ b/doc/iterator_facade_ref.rst @@ -106,7 +106,7 @@ The ``iterator_category`` member of ``iterator_facade`` is .. parsed-literal:: - *iterator-category*\ (CategoryOrTraversal, value_type, reference) + *iterator-category*\ (CategoryOrTraversal, reference, value_type) where *iterator-category* is defined as follows: From 09549a613ef1c09e5485666b6be5e966f524e2cc Mon Sep 17 00:00:00 2001 From: "Jeffrey Lee Hellrung, Jr" Date: Mon, 8 Oct 2012 03:22:45 +0000 Subject: [PATCH 2/5] refs #6403 [SVN r80903] --- .../iterator/detail/facade_iterator_category.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) mode change 100755 => 100644 include/boost/iterator/detail/facade_iterator_category.hpp diff --git a/include/boost/iterator/detail/facade_iterator_category.hpp b/include/boost/iterator/detail/facade_iterator_category.hpp old mode 100755 new mode 100644 index 2c4771d..1f8e525 --- a/include/boost/iterator/detail/facade_iterator_category.hpp +++ b/include/boost/iterator/detail/facade_iterator_category.hpp @@ -73,15 +73,8 @@ struct iterator_writability_disabled // Convert an iterator_facade's traversal category, Value parameter, // and ::reference type to an appropriate old-style category. // -// If writability has been disabled per the above metafunction, the -// result will not be convertible to output_iterator_tag. -// -// Otherwise, if Traversal == single_pass_traversal_tag, the following -// conditions will result in a tag that is convertible both to -// input_iterator_tag and output_iterator_tag: -// -// 1. Reference is a reference to non-const -// 2. Reference is not a reference and is convertible to Value +// Due to changeset 21683, this now never results in a category convertible +// to output_iterator_tag. // template struct iterator_facade_default_category From 8d96469cb4be189922eb3841ee205c1f490fcf7a Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 4 Jun 2014 11:10:31 +0100 Subject: [PATCH 3/5] Add link to changeset mentioned in comment. --- include/boost/iterator/detail/facade_iterator_category.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/iterator/detail/facade_iterator_category.hpp b/include/boost/iterator/detail/facade_iterator_category.hpp index 1f8e525..04b393a 100644 --- a/include/boost/iterator/detail/facade_iterator_category.hpp +++ b/include/boost/iterator/detail/facade_iterator_category.hpp @@ -76,6 +76,7 @@ struct iterator_writability_disabled // Due to changeset 21683, this now never results in a category convertible // to output_iterator_tag. // +// Change at: https://svn.boost.org/trac/boost/changeset/21683 template struct iterator_facade_default_category : mpl::eval_if< From a803b5b42db78e85fb464e0b6c2b27ec63a4e226 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 11 Oct 2013 23:23:26 +0000 Subject: [PATCH 4/5] Remove use of obsolete BOOST_TT_BROKEN_COMPILER_SPEC [SVN r86250] --- include/boost/pending/iterator_tests.hpp | 3 --- test/indirect_iter_member_types.cpp | 2 -- test/indirect_iterator_test.cpp | 1 - test/is_lvalue_iterator.cpp | 3 --- test/is_readable_iterator.cpp | 2 -- test/pointee.cpp | 1 - test/unit_tests.cpp | 1 - 7 files changed, 13 deletions(-) mode change 100755 => 100644 test/is_lvalue_iterator.cpp mode change 100755 => 100644 test/is_readable_iterator.cpp mode change 100755 => 100644 test/pointee.cpp diff --git a/include/boost/pending/iterator_tests.hpp b/include/boost/pending/iterator_tests.hpp index dd5fe2d..f9d6e9c 100644 --- a/include/boost/pending/iterator_tests.hpp +++ b/include/boost/pending/iterator_tests.hpp @@ -25,7 +25,6 @@ # include # include // for detail::dummy_constructor # include -# include namespace boost { @@ -41,8 +40,6 @@ struct dummyT { } -BOOST_TT_BROKEN_COMPILER_SPEC(boost::dummyT) - namespace boost { // Tests whether type Iterator satisfies the requirements for a diff --git a/test/indirect_iter_member_types.cpp b/test/indirect_iter_member_types.cpp index 84dcaeb..da09ac8 100644 --- a/test/indirect_iter_member_types.cpp +++ b/test/indirect_iter_member_types.cpp @@ -27,8 +27,6 @@ struct my_ptr { // typedef boost::no_traversal_tag iterator_category; }; -BOOST_TT_BROKEN_COMPILER_SPEC(my_ptr) -BOOST_TT_BROKEN_COMPILER_SPEC(zow) // Borland 5.6.4 and earlier drop const all over the place, so this // test will fail in the lines marked with (**) diff --git a/test/indirect_iterator_test.cpp b/test/indirect_iterator_test.cpp index 8cea482..22e710c 100644 --- a/test/indirect_iterator_test.cpp +++ b/test/indirect_iterator_test.cpp @@ -53,7 +53,6 @@ template struct see_val; struct my_iterator_tag : public std::random_access_iterator_tag { }; using boost::dummyT; -BOOST_TT_BROKEN_COMPILER_SPEC(boost::shared_ptr) typedef std::vector storage; typedef std::vector pointer_ra_container; diff --git a/test/is_lvalue_iterator.cpp b/test/is_lvalue_iterator.cpp old mode 100755 new mode 100644 index fdace52..ee57ab2 --- a/test/is_lvalue_iterator.cpp +++ b/test/is_lvalue_iterator.cpp @@ -20,7 +20,6 @@ struct v ~v(); }; -BOOST_TT_BROKEN_COMPILER_SPEC(v) struct value_iterator : boost::iterator { @@ -83,8 +82,6 @@ struct constant_lvalue_iterator constant_lvalue_iterator operator++(int); }; -BOOST_TT_BROKEN_COMPILER_SPEC(proxy_iterator::proxy) -BOOST_TT_BROKEN_COMPILER_SPEC(proxy_iterator::proxy) int main() { diff --git a/test/is_readable_iterator.cpp b/test/is_readable_iterator.cpp old mode 100755 new mode 100644 index 15ed099..c0c4b0a --- a/test/is_readable_iterator.cpp +++ b/test/is_readable_iterator.cpp @@ -20,7 +20,6 @@ struct v ~v(); }; -BOOST_TT_BROKEN_COMPILER_SPEC(v) struct value_iterator : boost::iterator { @@ -71,7 +70,6 @@ struct proxy_iterator2 : boost::iterator proxy operator*() const; }; -BOOST_TT_BROKEN_COMPILER_SPEC(proxy_iterator::proxy) int main() { diff --git a/test/pointee.cpp b/test/pointee.cpp old mode 100755 new mode 100644 index b39fce1..71d1d04 --- a/test/pointee.cpp +++ b/test/pointee.cpp @@ -35,7 +35,6 @@ struct X { template operator T&() const; }; -BOOST_TT_BROKEN_COMPILER_SPEC(X) int main() { diff --git a/test/unit_tests.cpp b/test/unit_tests.cpp index 2434310..15767c1 100644 --- a/test/unit_tests.cpp +++ b/test/unit_tests.cpp @@ -13,7 +13,6 @@ struct X { int a; }; -BOOST_TT_BROKEN_COMPILER_SPEC(X) struct Xiter : boost::iterator_adaptor { From 6b2a5cccc4eabdfd58a203af86b679c93ab91bf3 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 26 Oct 2013 10:13:38 +0000 Subject: [PATCH 5/5] Remove all references to now defunct (and removed) header. [SVN r86438] --- test/indirect_iterator_test.cpp | 2 -- test/is_lvalue_iterator.cpp | 1 - test/is_readable_iterator.cpp | 1 - test/iterator_adaptor_test.cpp | 2 -- test/unit_tests.cpp | 2 -- 5 files changed, 8 deletions(-) diff --git a/test/indirect_iterator_test.cpp b/test/indirect_iterator_test.cpp index 22e710c..c689673 100644 --- a/test/indirect_iterator_test.cpp +++ b/test/indirect_iterator_test.cpp @@ -27,8 +27,6 @@ #include -#include - #include #include diff --git a/test/is_lvalue_iterator.cpp b/test/is_lvalue_iterator.cpp index ee57ab2..a3f7b6f 100644 --- a/test/is_lvalue_iterator.cpp +++ b/test/is_lvalue_iterator.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include diff --git a/test/is_readable_iterator.cpp b/test/is_readable_iterator.cpp index c0c4b0a..ee58089 100644 --- a/test/is_readable_iterator.cpp +++ b/test/is_readable_iterator.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include diff --git a/test/iterator_adaptor_test.cpp b/test/iterator_adaptor_test.cpp index e339fe1..5b5e0c3 100644 --- a/test/iterator_adaptor_test.cpp +++ b/test/iterator_adaptor_test.cpp @@ -19,8 +19,6 @@ #endif #include -# include - # include #include diff --git a/test/unit_tests.cpp b/test/unit_tests.cpp index 15767c1..c53627d 100644 --- a/test/unit_tests.cpp +++ b/test/unit_tests.cpp @@ -7,8 +7,6 @@ #include "static_assert_same.hpp" -#include - #include struct X { int a; };