aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2002-03-06 20:08:18 +0000
committerPhil Edwards <pme@gcc.gnu.org>2002-03-06 20:08:18 +0000
commitd95336cf37d83abc50e2e0b3e3173023291a0c81 (patch)
treefc8629362652cc2bcd8273329c2d92d4183eaf87 /libstdc++-v3
parentd094b0b31366673aff4d9fd229f5d7e1cdd65389 (diff)
downloadgcc-d95336cf37d83abc50e2e0b3e3173023291a0c81.zip
gcc-d95336cf37d83abc50e2e0b3e3173023291a0c81.tar.gz
gcc-d95336cf37d83abc50e2e0b3e3173023291a0c81.tar.bz2
re PR libstdc++/5734 (2 extensions (empty push_back() and is_sorted()) are not documented)
2002-03-06 Phil Edwards <pme@gcc.gnu.org> PR libstdc++/5734 * include/bits/stl_vector.h (vector::push_back()): Guard with _GLIBCPP_DEPRECATED. From-SVN: r50375
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/bits/stl_vector.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 79c7429..6cb5a02 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,11 @@
2002-03-06 Phil Edwards <pme@gcc.gnu.org>
+ PR libstdc++/5734
+ * include/bits/stl_vector.h (vector::push_back()): Guard with
+ _GLIBCPP_DEPRECATED.
+
+2002-03-06 Phil Edwards <pme@gcc.gnu.org>
+
* include/bits/c++config: Fix misplaced leading blanks on first line.
2002-03-05 Benjamin Kosnik <bkoz@redhat.com>
diff --git a/libstdc++-v3/include/bits/stl_vector.h b/libstdc++-v3/include/bits/stl_vector.h
index 4d8e751..75260a3 100644
--- a/libstdc++-v3/include/bits/stl_vector.h
+++ b/libstdc++-v3/include/bits/stl_vector.h
@@ -484,9 +484,13 @@ public:
_M_insert_aux(end(), __x);
}
+#ifdef _GLIBCPP_DEPRECATED
/**
* Add an element to the end of the vector. The element is
* default-constructed.
+ *
+ * @note You must define _GLIBCPP_DEPRECATED to make this visible; see
+ * c++config.h.
*/
void
push_back()
@@ -498,6 +502,7 @@ public:
else
_M_insert_aux(end());
}
+#endif
void
swap(vector<_Tp, _Alloc>& __x)