This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[RFC/Patch] libstdc++/14248 aka remove/fix the bit_vector typdef?
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 23 Feb 2004 01:04:43 +0100
- Subject: [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 */