]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alloc_traits.h (allocator_traits::max_size()): LWG 2162: Add noexcept.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 8 Jun 2013 17:31:40 +0000 (17:31 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 8 Jun 2013 17:31:40 +0000 (18:31 +0100)
* include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
2162: Add noexcept.

From-SVN: r199858

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

index 55037c12db90e1fcc46f2dc7ce1bd5bc3c5f1320..c48f2fc1a6e4a0acb2c81123f4edf5df7ac2d4f3 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
+       2162: Add noexcept.
+
 2013-06-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        * include/bits/stl_algo.h (is_permutation): Add overloads from N3671.
index 33ea145d521d45ce6e8d87fd5e1545e6e223ee53..e68d31710951bfc4e9dfc60b76e5ec8484526f8b 100644 (file)
@@ -412,7 +412,7 @@ _GLIBCXX_ALLOC_TR_NESTED_TYPE(propagate_on_container_swap,
        *  Returns @c __a.max_size() if that expression is well-formed,
        *  otherwise returns @c numeric_limits<size_type>::max()
       */
-      static size_type max_size(const _Alloc& __a)
+      static size_type max_size(const _Alloc& __a) noexcept
       { return _S_max_size(__a); }
 
       /**