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 55037c1..c48f2fc 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * include/bits/stl_algobase.h (equal, mismatch): Likewise.
        * testsuite/25_algorithms/equal/1.cc: Remove duplicate test case.
index 33ea145..e68d317 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); }
 
       /**