diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:36 +0000 |
| commit | 889cddf52cb31d630228c5679892ca6e3e45b024 (patch) | |
| tree | 96130e7ccba1ec341133654514dfea918804914e /llvm/include/Support/DepthFirstIterator.h | |
| parent | 7d520558f37ecd6f9b7c13ef73f974bf3a8c5b42 (diff) | |
| download | bcm5719-llvm-889cddf52cb31d630228c5679892ca6e3e45b024.tar.gz bcm5719-llvm-889cddf52cb31d630228c5679892ca6e3e45b024.zip | |
Changes to build with GCC 3.1
llvm-svn: 3064
Diffstat (limited to 'llvm/include/Support/DepthFirstIterator.h')
| -rw-r--r-- | llvm/include/Support/DepthFirstIterator.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/Support/DepthFirstIterator.h b/llvm/include/Support/DepthFirstIterator.h index 2961497adc3..e0782ac83aa 100644 --- a/llvm/include/Support/DepthFirstIterator.h +++ b/llvm/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; |

