This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++: Two header problems (patch included)
- To: gcc-patches at gcc dot gnu dot org
- Subject: libstdc++: Two header problems (patch included)
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Sun, 11 Mar 2001 20:36:00 +0100 (CET)
- cc: libstdc++ at gcc dot gnu dot org
The following patch fixes two minor problems.
The first one removes a comparison between signed and unsigned type
warning in include/ext/stl_hashtable.h.
The second one fixes the incorrect file inclusing in file
include/backward/bvector.h, since stl_bvector.h is located in
<ext/stl_bvector.h> and not in <bits/stl_bvector.h>.
Peter Schmid
2001-03-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/ext/stl_hashtable.h: Change type of __n to size_t
* include/backward/bvector.h: Include <ext/stl_bvector.h>
*** libstdc++-v3/include/ext/stl_hashtable.h.orig Sun Mar 11 19:17:41 2001
--- libstdc++-v3/include/ext/stl_hashtable.h Sun Mar 11 19:20:03 2001
*************** bool operator==(const hashtable<_Val,_Ke
*** 564,570 ****
typedef typename hashtable<_Val,_Key,_HF,_Ex,_Eq,_All>::_Node _Node;
if (__ht1._M_buckets.size() != __ht2._M_buckets.size())
return false;
! for (int __n = 0; __n < __ht1._M_buckets.size(); ++__n) {
_Node* __cur1 = __ht1._M_buckets[__n];
_Node* __cur2 = __ht2._M_buckets[__n];
for ( ; __cur1 && __cur2 && __cur1->_M_val == __cur2->_M_val;
--- 564,570 ----
typedef typename hashtable<_Val,_Key,_HF,_Ex,_Eq,_All>::_Node _Node;
if (__ht1._M_buckets.size() != __ht2._M_buckets.size())
return false;
! for (size_t __n = 0; __n < __ht1._M_buckets.size(); ++__n) {
_Node* __cur1 = __ht1._M_buckets[__n];
_Node* __cur2 = __ht2._M_buckets[__n];
for ( ; __cur1 && __cur2 && __cur1->_M_val == __cur2->_M_val;
*** libstdc++-v3/include/backward/bvector.h.orig Sun Mar 11 19:17:07 2001
--- libstdc++-v3/include/backward/bvector.h Sun Mar 11 19:17:19 2001
***************
*** 29,35 ****
#include "vector.h"
! #include <bits/stl_bvector.h>
using std::bit_vector;
--- 29,35 ----
#include "vector.h"
! #include <ext/stl_bvector.h>
using std::bit_vector;