This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] libstdc++-v3 backward include fixes
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] libstdc++-v3 backward include fixes
- From: Scott Johnston <scott at accom dot com>
- Date: Thu, 16 Aug 2001 10:47:31 -0700
This patch fixes three problems with the backward include files of
libstdc++-v3 as packaged with the forthcoming gcc-3.0.1.
1) alloc.h had a using statement that needed to be conditionally
incorporated.
2) iterator.h had a using statement for a non-existent function (not
referred to by any other libstdc++-v3 include file)
3) iterator.h had an erroneous extra "}"
Scott Johnston
http://www.ivtools.org
Index: alloc.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/alloc.h,v
retrieving revision 1.8
diff -c -r1.8 alloc.h
*** libstdc++-v3/include/backward/alloc.h 2001/06/27 17:09:52 1.8
--- libstdc++-v3/include/backward/alloc.h 2001/08/16 16:53:25
***************
*** 48,54 ****
--- 48,56 ----
#include <bits/stl_alloc.h>
using std::__malloc_alloc_template;
+ #ifdef __USE_MALLOC
using std::malloc_alloc;
+ #endif
using std::simple_alloc;
using std::debug_alloc;
#ifndef __USE_MALLOC
Index: iterator.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/iterator.h,v
retrieving revision 1.9
diff -c -r1.9 iterator.h
*** libstdc++-v3/include/backward/iterator.h 2001/07/18 17:08:55 1.9
--- libstdc++-v3/include/backward/iterator.h 2001/08/16 16:53:25
***************
*** 80,86 ****
using std::back_inserter;
using std::reverse_iterator;
- using std::reverse_bidirectional_iterator;
using std::istream_iterator;
using std::ostream_iterator;
--- 80,85 ----
***************
*** 105,111 ****
inline void
destroy(_ForwardIterator __first, _ForwardIterator __last)
{ std::_Destroy(__first, __last); }
- }
// Names from stl_raw_storage_iter.h
using std::raw_storage_iterator;
--- 104,109 ----