diff options
Diffstat (limited to 'include/Support/PostOrderIterator.h')
-rw-r--r-- | include/Support/PostOrderIterator.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Support/PostOrderIterator.h b/include/Support/PostOrderIterator.h index 29d315e..4f94141 100644 --- a/include/Support/PostOrderIterator.h +++ b/include/Support/PostOrderIterator.h @@ -10,13 +10,14 @@ #define LLVM_SUPPORT_POSTORDER_ITERATOR_H #include "Support/GraphTraits.h" -#include <iterator> +#include <Support/iterator> #include <stack> #include <set> template<class GraphT, class GT = GraphTraits<GraphT> > -class po_iterator : public std::forward_iterator<typename GT::NodeType, - ptrdiff_t> { +class po_iterator : public forward_iterator<typename GT::NodeType, ptrdiff_t> { + typedef forward_iterator<typename GT::NodeType, ptrdiff_t> super; + typedef typename super::pointer pointer; typedef typename GT::NodeType NodeType; typedef typename GT::ChildIteratorType ChildItTy; |