This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC/Patch] libstdc++/14248 aka remove/fix the bit_vector typdef?


Hi,

currently the legacy bit_vector typedef is broken: shall we fix
it or just remove it?

If we decide to keep it, the below seems an obvious fix...

Opinions?

Paolo.

///////////
diff -urN libstdc++-v3-orig/include/bits/stl_bvector.h libstdc++-v3/include/bits/stl_bvector.h
--- libstdc++-v3-orig/include/bits/stl_bvector.h	2004-01-27 04:07:58.000000000 +0100
+++ libstdc++-v3/include/bits/stl_bvector.h	2004-02-23 00:56:28.000000000 +0100
@@ -697,7 +697,7 @@
   };
 
   // This typedef is non-standard.  It is provided for backward compatibility.
-  typedef vector<bool, __alloc> bit_vector;
+  typedef vector<bool, allocator<bool> > bit_vector;
 } // namespace __gnu_norm
 
 #endif /* _BVECTOR_H */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]