re PR libstdc++/5734 (2 extensions (empty push_back() and is_sorted()) are not docume...
authorPhil Edwards <pme@gcc.gnu.org>
Wed, 6 Mar 2002 20:08:18 +0000 (20:08 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Wed, 6 Mar 2002 20:08:18 +0000 (20:08 +0000)
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

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

index 79c7429426fcc85fc90851487c25af6c71f8f6ef..6cb5a0247bf8589194e156d660173329efc83413 100644 (file)
@@ -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.
index 4d8e7513e9f6af5a9f6d7ce093b213cb9f6b400b..75260a3e5a3484d4abff3ced8a1f894baa3ba7b5 100644 (file)
@@ -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)