diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-04 22:05:33 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-04 22:05:33 +0000 |
commit | 75e4cc424f1264b59585d32f320da6ff583ee32c (patch) | |
tree | 25f7ab241d7f8a8267d046c559f9b5f885d77ea8 | |
parent | 44bc851ac3c4fe4c0114cb5bf1f6f801964cd6f5 (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45389 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 8 | ||||
-rw-r--r-- | libstdc++-v3/include/backward/iterator.h | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/backward/header_iterator_h.cc | 31 |
3 files changed, 41 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 18c48e1fbd2..3df63ec0733 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/backward/iterator.h b/libstdc++-v3/include/backward/iterator.h index d213c1d3025..391ee2566c0 100644 --- a/libstdc++-v3/include/backward/iterator.h +++ b/libstdc++-v3/include/backward/iterator.h @@ -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 index 00000000000..d1d6fc22551 --- /dev/null +++ b/libstdc++-v3/testsuite/backward/header_iterator_h.cc @@ -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; +} |