PR libstdc++/23578 (cont)
authorPaolo Carlini <pcarlini@suse.de>
Tue, 30 Aug 2005 15:49:15 +0000 (15:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Aug 2005 15:49:15 +0000 (15:49 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h

index 217b1113eb076a26a0f51815f3d4ff60ee8a7b6c..1a86ff544d6e7030da78e0249f7419ff981ee2fb 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 859554411c269fa3e0c9df7a7ce73eff19892406..afa25b1b4ca2a577725cc1837fe7172c01555de3 100644 (file)
@@ -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)
     {