]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR libstdc++/21609
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2014 20:43:44 +0000 (20:43 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2014 20:43:44 +0000 (20:43 +0000)
* include/ext/array_allocator.h: Add deprecated attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207280 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/array_allocator.h

index c06677340283a547c9d0d067440f53f66fb350ef..e0f36932bd9148f37040cf88d367195b57b2ee8a 100644 (file)
@@ -38,6 +38,9 @@
        * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
        Likewise.
 
+       PR libstdc++/21609
+       * include/ext/array_allocator.h: Add deprecated attribute.
+
 2014-01-28  Jonathan Wakely  <jwakely@redhat.com>
            Kyle Lippincott  <spectral@google.com>
 
index f584b5b78798b7101366a13fbd22fa9675120ea4..f807495a9e0084b1fcc3374f37972e7b16577b99 100644 (file)
@@ -95,7 +95,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       void 
       destroy(pointer __p) { __p->~_Tp(); }
 #endif
-    };  
+    } _GLIBCXX_DEPRECATED;
 
   /**
    *  @brief  An allocator that uses previously allocated memory.
@@ -128,7 +128,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     public:
      template<typename _Tp1, typename _Array1 = _Array>
         struct rebind
-        { typedef array_allocator<_Tp1, _Array1> other; };
+        {
+         typedef array_allocator<_Tp1, _Array1> other _GLIBCXX_DEPRECATED;
+       } _GLIBCXX_DEPRECATED;
 
       array_allocator(array_type* __array = 0) _GLIBCXX_USE_NOEXCEPT 
       : _M_array(__array), _M_used(size_type()) { }
@@ -152,7 +154,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        _M_used += __n;
        return __ret;
       }
-    };
+    } _GLIBCXX_DEPRECATED;
 
   template<typename _Tp, typename _Array>
     inline bool