iterator.h: Include <bits/std_iterator.h>, remove reverse_bidirectional_iterator.
authorScott Johnston <scott@accom.com>
Tue, 4 Sep 2001 22:05:33 +0000 (22:05 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 4 Sep 2001 22:05:33 +0000 (22:05 +0000)
2001-09-04  Scott Johnston  <scott@accom.com>
    Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* include/backward/iterator.h: Include <bits/std_iterator.h>,
remove reverse_bidirectional_iterator.
* testsuite/backward: New directory.
* testsuite/backward/header_iterator_h.cc: New file.

Co-Authored-By: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
From-SVN: r45389

libstdc++-v3/ChangeLog
libstdc++-v3/include/backward/iterator.h
libstdc++-v3/testsuite/backward/header_iterator_h.cc [new file with mode: 0644]

index 18c48e1..3df63ec 100644 (file)
@@ -1,3 +1,11 @@
+2001-09-04  Scott Johnston  <scott@accom.com>
+           Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+       * include/backward/iterator.h: Include <bits/std_iterator.h>,
+       remove reverse_bidirectional_iterator. 
+       * testsuite/backward: New directory.
+       * testsuite/backward/header_iterator_h.cc: New file.
+       
 2001-09-04  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/c_std/bits/std_c*.h: Don't use include_next.
index d213c1d..391ee25 100644 (file)
@@ -31,7 +31,7 @@
 #include "function.h"
 #include <stddef.h>
 #include "iostream.h"
-#include "iterator.h"
+#include <bits/std_iterator.h>
 
 #include <bits/stl_construct.h>
 #include <bits/stl_raw_storage_iter.h>
@@ -80,7 +80,6 @@ using std::front_inserter;
 using std::back_inserter;
 
 using std::reverse_iterator;
-using std::reverse_bidirectional_iterator;
 
 using std::istream_iterator;
 using std::ostream_iterator;
@@ -105,7 +104,7 @@ template <class _ForwardIterator>
   inline void
   destroy(_ForwardIterator __first, _ForwardIterator __last)
   { std::_Destroy(__first, __last); }
-}
+
 
 // Names from stl_raw_storage_iter.h
 using std::raw_storage_iterator;
diff --git a/libstdc++-v3/testsuite/backward/header_iterator_h.cc b/libstdc++-v3/testsuite/backward/header_iterator_h.cc
new file mode 100644 (file)
index 0000000..d1d6fc2
--- /dev/null
@@ -0,0 +1,31 @@
+// 2001-09-04 Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+// Copyright (C) 2001 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING.  If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// backward header iterator.h
+
+#include <iterator.h>
+#include <testsuite_hooks.h>
+
+// { dg-excess-errors "" }
+
+int main(void)
+{
+  return 0;
+}