summaryrefslogtreecommitdiff
path: root/boost/graph/detail/array_binary_tree.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/graph/detail/array_binary_tree.hpp')
-rw-r--r--boost/graph/detail/array_binary_tree.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/boost/graph/detail/array_binary_tree.hpp b/boost/graph/detail/array_binary_tree.hpp
index fd403d1f30..a594ba6bf8 100644
--- a/boost/graph/detail/array_binary_tree.hpp
+++ b/boost/graph/detail/array_binary_tree.hpp
@@ -14,7 +14,6 @@
#include <iterator>
#include <functional>
#include <boost/config.hpp>
-#include <boost/iterator.hpp>
namespace boost {
@@ -43,9 +42,12 @@ public:
struct children_type {
struct iterator
- : boost::iterator<std::bidirectional_iterator_tag, ArrayBinaryTreeNode,
- difference_type, array_binary_tree_node*, ArrayBinaryTreeNode&>
{ // replace with iterator_adaptor implementation -JGS
+ typedef std::bidirectional_iterator_tag iterator_category;
+ typedef ArrayBinaryTreeNode value_type;
+ typedef size_type difference_type;
+ typedef array_binary_tree_node* pointer;
+ typedef ArrayBinaryTreeNode& reference;
inline iterator() : i(0), n(0) { }
inline iterator(const iterator& x) : r(x.r), i(x.i), n(x.n), id(x.id) { }