aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2005-08-30 15:49:15 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2005-08-30 15:49:15 +0000
commit5038e0988ed00c097c45794ca5eee2511cd7ff62 (patch)
treeb4f462974f49dcb82df7421113191fbe1319ef4a
parent064e8a9454723cefaac28aaaf30d36d73694efbe (diff)
downloadgcc-5038e0988ed00c097c45794ca5eee2511cd7ff62.zip
gcc-5038e0988ed00c097c45794ca5eee2511cd7ff62.tar.gz
gcc-5038e0988ed00c097c45794ca5eee2511cd7ff62.tar.bz2
PR libstdc++/23578 (cont)
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. From-SVN: r103641
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/bits/stl_bvector.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 217b111..1a86ff5 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2005-08-30 Paolo Carlini <pcarlini@suse.de>
+
* testsuite/ext/hash_map/23528.cc: New.
2005-08-29 Paolo Carlini <pcarlini@suse.de>
diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h
index 8595544..afa25b1 100644
--- a/libstdc++-v3/include/bits/stl_bvector.h
+++ b/libstdc++-v3/include/bits/stl_bvector.h
@@ -808,6 +808,14 @@ template<typename _Alloc>
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)
{