OSDN Git Service

2001-12-31 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Dec 2001 19:30:24 +0000 (19:30 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Dec 2001 19:30:24 +0000 (19:30 +0000)
* include/ext/iterator:  Add #include <bits/std_iterator.h>, tweak.
* testsuite/ext/headers.cc:  Add <ext/iterator>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48430 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/iterator
libstdc++-v3/testsuite/ext/headers.cc

index 71a370f..923ea70 100644 (file)
@@ -1,5 +1,10 @@
 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
 
+       * include/ext/iterator:  Add #include <bits/std_iterator.h>, tweak.
+       * testsuite/ext/headers.cc:  Add <ext/iterator>.
+
+2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
+
        * include/backward/algo.h:  Add two more using declarations.
        * include/backward/iterator.h:  Include <ext/iterator>,
        add using declaration.
index 8482058..73fd6c8 100644 (file)
@@ -63,6 +63,7 @@
 
 #pragma GCC system_header
 #include <bits/concept_check.h>
+#include <bits/std_iterator.h>
 
 namespace __gnu_cxx
 {
@@ -74,7 +75,7 @@ namespace __gnu_cxx
   template<typename _InputIterator, typename _Distance>
     inline void
     __distance(_InputIterator __first, _InputIterator __last,
-              _Distance& __n, input_iterator_tag)
+              _Distance& __n, std::input_iterator_tag)
     {
       // concept requirements
       __glibcpp_function_requires(_InputIteratorConcept<_InputIterator>)
@@ -84,7 +85,7 @@ namespace __gnu_cxx
   template<typename _RandomAccessIterator, typename _Distance>
     inline void
     __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 
-              _Distance& __n, random_access_iterator_tag)
+              _Distance& __n, std::random_access_iterator_tag)
     {
       // concept requirements
       __glibcpp_function_requires(_RandomAccessIteratorConcept<_RandomAccessIterator>)
@@ -97,7 +98,7 @@ namespace __gnu_cxx
              _Distance& __n)
     {
       // concept requirements -- taken care of in __distance
-      __distance(__first, __last, __n, __iterator_category(__first));
+      __distance(__first, __last, __n, std::__iterator_category(__first));
     }
 
 } // namespace __gnu_cxx
index 4bda2db..b751b82 100644 (file)
@@ -26,6 +26,7 @@
 #include <ext/algorithm>
 #include <ext/hash_map>
 #include <ext/hash_set>
+#include <ext/iterator>
 #include <ext/rope>
 #include <ext/slist>