diff mbox

Add noexcept to allocator_traits::max_size()

Message ID CAH6eHdTyo5bW-qsWWPKj1Gg7jwPZ2WWwcsypCafuv3ThJUg3Eg@mail.gmail.com
State New
Headers show

Commit Message

Jonathan Wakely June 8, 2013, 5:32 p.m. UTC
* 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.gcc@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 mbox

Patch

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); }
 
       /**