diff options
Diffstat (limited to 'include/Support/DepthFirstIterator.h')
-rw-r--r-- | include/Support/DepthFirstIterator.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/Support/DepthFirstIterator.h b/include/Support/DepthFirstIterator.h index 2961497adc..e0782ac83a 100644 --- a/include/Support/DepthFirstIterator.h +++ b/include/Support/DepthFirstIterator.h @@ -9,14 +9,16 @@ #define LLVM_SUPPORT_DEPTH_FIRST_ITERATOR_H #include "Support/GraphTraits.h" -#include <iterator> +#include <Support/iterator> #include <stack> #include <set> // Generic Depth First Iterator template<class GraphT, class GT = GraphTraits<GraphT> > -class df_iterator : public std::forward_iterator<typename GT::NodeType, - ptrdiff_t> { +class df_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; |