]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
allocator.h (operator==, operator!=): Add exception specifications.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 Apr 2014 15:13:02 +0000 (16:13 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 Apr 2014 15:13:02 +0000 (16:13 +0100)
* include/bits/allocator.h (operator==, operator!=): Add exception
specifications.

From-SVN: r209379

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

index a2ea772f5d593504d74f010e7764127cdc7ea505..cd5e5e6aa0c538a8fa0bdde61b7de9df7f28ba93 100644 (file)
@@ -6,6 +6,9 @@
        * include/bits/vector.tcc (vector::_M_insert_aux,
        vector::_M_explace_back_aux): Likewise for assignment.
 
+       * include/bits/allocator.h (operator==, operator!=): Add exception
+       specifications.
+
 2014-04-11  Marc Glisse  <marc.glisse@inria.fr>
 
        PR libstdc++/59434
index e293c545f424230874e70faa21fa2d2911a6d5b5..05a06bab847caa65897db76b293f2c31f59269b5 100644 (file)
@@ -126,21 +126,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<typename _T1, typename _T2>
     inline bool
     operator==(const allocator<_T1>&, const allocator<_T2>&)
+    _GLIBCXX_USE_NOEXCEPT
     { return true; }
 
   template<typename _Tp>
     inline bool
     operator==(const allocator<_Tp>&, const allocator<_Tp>&)
+    _GLIBCXX_USE_NOEXCEPT
     { return true; }
 
   template<typename _T1, typename _T2>
     inline bool
     operator!=(const allocator<_T1>&, const allocator<_T2>&)
+    _GLIBCXX_USE_NOEXCEPT
     { return false; }
 
   template<typename _Tp>
     inline bool
     operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
+    _GLIBCXX_USE_NOEXCEPT
     { return false; }
 
   /// @} group allocator