From: Paolo Carlini Date: Tue, 30 Aug 2005 15:49:15 +0000 (+0000) Subject: PR libstdc++/23578 (cont) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5038e0988ed00c097c45794ca5eee2511cd7ff62;p=gcc.git PR libstdc++/23578 (cont) 2005-08-30 Paolo Carlini PR libstdc++/23578 (cont) * include/bits/stl_bvector.h (class vector): Add a dummy data() to avoid problems in debug-mode. From-SVN: r103641 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 217b1113eb0..1a86ff544d6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2005-08-30 Paolo Carlini + + PR libstdc++/23578 (cont) + * include/bits/stl_bvector.h (class vector): Add + a dummy data() to avoid problems in debug-mode. + 2005-08-30 Paolo Carlini * testsuite/ext/hash_map/23528.cc: New. diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 859554411c2..afa25b1b4ca 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -808,6 +808,14 @@ template 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 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) {