diff --git a/include/boost/multi_array/iterator.hpp b/include/boost/multi_array/iterator.hpp index ec5e61ce..8cb09dcc 100644 --- a/include/boost/multi_array/iterator.hpp +++ b/include/boost/multi_array/iterator.hpp @@ -1,6 +1,6 @@ // Copyright 2002 The Trustees of Indiana University. -// Use, modification and distribution is subject to the Boost Software +// Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) @@ -18,8 +18,11 @@ // multi-dimensional array class // -#include "boost/multi_array/base.hpp" -#include "boost/iterator/iterator_facade.hpp" +#include +#include +#include +#include +#include #include #include #include @@ -51,7 +54,7 @@ template class array_iterator : public - iterator_facade< + iterators::iterator_facade< array_iterator , typename associated_types::value_type , IteratorCategory @@ -60,13 +63,13 @@ class array_iterator , private value_accessor_generator::type { - friend class ::boost::iterator_core_access; + friend class ::boost::iterators::iterator_core_access; typedef detail::multi_array::associated_types access_t; - typedef iterator_facade< + typedef iterators::iterator_facade< array_iterator , typename detail::multi_array::associated_types::value_type - , boost::random_access_traversal_tag + , boost::iterators::random_access_traversal_tag , Reference > facade_type; @@ -78,14 +81,14 @@ class array_iterator friend class array_iterator; #else public: -#endif +#endif index idx_; TPtr base_; const size_type* extents_; const index* strides_; const index* index_base_; - + public: // Typedefs to circumvent ambiguities between parent classes typedef typename facade_type::reference reference; @@ -103,7 +106,7 @@ class array_iterator template array_iterator( const array_iterator& rhs - , typename boost::enable_if_convertible::type* = 0 + , typename boost::iterators::enable_if_convertible::type* = 0 ) : idx_(rhs.idx_), base_(rhs.base_), extents_(rhs.extents_), strides_(rhs.strides_), index_base_(rhs.index_base_) { } @@ -115,7 +118,7 @@ class array_iterator { return operator_arrow_proxy(this->dereference()); } - + reference dereference() const { @@ -127,7 +130,7 @@ class array_iterator strides_, index_base_); } - + void increment() { ++idx_; } void decrement() { --idx_; }