Add missing default argument
authorChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 16:44:30 +0000 (16:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Oct 2003 16:44:30 +0000 (16:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9092 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/DepthFirstIterator.h
include/llvm/ADT/DepthFirstIterator.h

index edb8b2d6bd96bb2222493cb6214e64e70fb8029a..7df5c26f98d8a3c1a32c20c1f8c2c880ec5376f5 100644 (file)
@@ -162,7 +162,7 @@ df_iterator<T> df_end(T G) {
 }
 
 // Provide global definitions of external depth first iterators...
-template <class T, class SetTy>
+template <class T, class SetTy = std::set<typename GraphTraits<T>::NodeType*> >
 struct df_ext_iterator : public df_iterator<T, SetTy, true> {
   df_ext_iterator(const df_iterator<T, SetTy, true> &V)
     : df_iterator<T, SetTy, true>(V) {}
index edb8b2d6bd96bb2222493cb6214e64e70fb8029a..7df5c26f98d8a3c1a32c20c1f8c2c880ec5376f5 100644 (file)
@@ -162,7 +162,7 @@ df_iterator<T> df_end(T G) {
 }
 
 // Provide global definitions of external depth first iterators...
-template <class T, class SetTy>
+template <class T, class SetTy = std::set<typename GraphTraits<T>::NodeType*> >
 struct df_ext_iterator : public df_iterator<T, SetTy, true> {
   df_ext_iterator(const df_iterator<T, SetTy, true> &V)
     : df_iterator<T, SetTy, true>(V) {}