From 35b362c5ace3d408d7b80235af82f092a68bd677 Mon Sep 17 00:00:00 2001 From: pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed, 6 Mar 2002 20:08:18 +0000 Subject: [PATCH] 2002-03-06 Phil Edwards <pme@gcc.gnu.org> PR libstdc++/5734 * include/bits/stl_vector.h (vector::push_back()): Guard with _GLIBCPP_DEPRECATED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50375 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/bits/stl_vector.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 79c7429426fc..6cb5a0247bf8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/libstdc++-v3/include/bits/stl_vector.h b/libstdc++-v3/include/bits/stl_vector.h index 4d8e7513e9f6..75260a3e5a34 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) -- GitLab