From: Scott Johnston Date: Tue, 4 Sep 2001 22:05:33 +0000 (+0000) Subject: iterator.h: Include , remove reverse_bidirectional_iterator. X-Git-Tag: prereleases/libstdc++-3.0.95~2264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45932d27fb140524de00d4a08efea4cf75dd7ca0;p=thirdparty%2Fgcc.git iterator.h: Include , remove reverse_bidirectional_iterator. 2001-09-04 Scott Johnston Peter Schmid * include/backward/iterator.h: Include , remove reverse_bidirectional_iterator. * testsuite/backward: New directory. * testsuite/backward/header_iterator_h.cc: New file. Co-Authored-By: Peter Schmid From-SVN: r45389 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 18c48e1fbd22..3df63ec07334 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2001-09-04 Scott Johnston + Peter Schmid + + * include/backward/iterator.h: Include , + remove reverse_bidirectional_iterator. + * testsuite/backward: New directory. + * testsuite/backward/header_iterator_h.cc: New file. + 2001-09-04 Benjamin Kosnik * 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 d213c1d3025c..391ee2566c02 100644 --- a/libstdc++-v3/include/backward/iterator.h +++ b/libstdc++-v3/include/backward/iterator.h @@ -31,7 +31,7 @@ #include "function.h" #include #include "iostream.h" -#include "iterator.h" +#include #include #include @@ -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 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 000000000000..d1d6fc22551a --- /dev/null +++ b/libstdc++-v3/testsuite/backward/header_iterator_h.cc @@ -0,0 +1,31 @@ +// 2001-09-04 Peter Schmid + +// 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 +#include + +// { dg-excess-errors "" } + +int main(void) +{ + return 0; +}