This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Simple follow-up for 23578
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Aug 2005 17:52:15 +0200
- Subject: [v3] Simple follow-up for 23578
Hi,
noticed while working on libstdc++/23632. Tested x86-linux.
Paolo.
//////////////////
2005-08-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/23578 (cont)
* include/bits/stl_bvector.h (class vector<bool>): Add
a dummy data() to avoid problems in debug-mode.
Index: stl_bvector.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/stl_bvector.h,v
retrieving revision 1.43
diff -u -r1.43 stl_bvector.h
--- stl_bvector.h 17 Aug 2005 02:12:57 -0000 1.43
+++ stl_bvector.h 30 Aug 2005 15:28:47 -0000
@@ -808,6 +808,14 @@
back() const
{ return *(end() - 1); }
+ // _GLIBCXX_RESOLVE_LIB_DEFECTS
+ // DR 464. Suggestion for new member functions in standard containers.
+ // N.B. DR 464 says nothing about vector<bool> but we need something
+ // here due to the way we are implementing DR 464 in the debug-mode
+ // vector class.
+ void
+ data() { }
+
void
push_back(bool __x)
{