* include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
        2162: Add noexcept.

Tested x86_64-linux, committed to trunk
commit 10087221105c7f621a06137189c16886213c68b2
Author: Jonathan Wakely <jwakely....@gmail.com>
Date:   Sat Jun 8 18:31:18 2013 +0100

        * include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
        2162: Add noexcept.

diff --git a/libstdc++-v3/include/bits/alloc_traits.h 
b/libstdc++-v3/include/bits/alloc_traits.h
index 33ea145..e68d317 100644
--- a/libstdc++-v3/include/bits/alloc_traits.h
+++ b/libstdc++-v3/include/bits/alloc_traits.h
@@ -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); }
 
       /**

Reply via email to