Use noexcept instead of _GLIBCXX_NOEXCEPT
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Oct 2015 22:13:12 +0000 (23:13 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 2 Oct 2015 22:13:12 +0000 (23:13 +0100)
* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
(basic_string::front() const, basic_string::back() const): Use
noexcept instead of _GLIBCXX_NOEXCEPT macro.
(__versa_string::front, __versa_string::back): Likewise.

From-SVN: r228434

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/ext/vstring.h

index def1789f4b6f67455ddbfd1f438525e266ec20ec..9633f61a21e994b01cfc92dcfb4e92a86d3a76b0 100644 (file)
@@ -1,5 +1,10 @@
 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
+       (basic_string::front() const, basic_string::back() const): Use
+       noexcept instead of _GLIBCXX_NOEXCEPT macro.
+       (__versa_string::front, __versa_string::back): Likewise.
+
        * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
 
        * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
index c1689af0e705ff7980f8e1a1db83dee3b8c0cb62..35246d945aaf9597d9441703b4ea4a1ed40649d0 100644 (file)
@@ -3441,7 +3441,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
        *  element of the %string.
        */
       const_reference
-      front() const _GLIBCXX_NOEXCEPT
+      front() const noexcept
       {
        __glibcxx_assert(!empty());
        return operator[](0);
@@ -3463,7 +3463,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
        *  last element of the %string.
        */
       const_reference
-      back() const _GLIBCXX_NOEXCEPT
+      back() const noexcept
       {
        __glibcxx_assert(!empty());
        return operator[](this->size() - 1);
index 94af25eb597b4375bd4294b6a6aca217b169caa4..68acd576528b23919ffff6e0ddaffebd63df32d0 100644 (file)
@@ -613,7 +613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        *  element of the %string.
        */
       reference
-      front() _GLIBCXX_NOEXCEPT
+      front() noexcept
       { return operator[](0); }
 
       /**
@@ -621,7 +621,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        *  element of the %string.
        */
       const_reference
-      front() const _GLIBCXX_NOEXCEPT
+      front() const noexcept
       { return operator[](0); }
 
       /**
@@ -629,7 +629,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        *  element of the %string.
        */
       reference
-      back() _GLIBCXX_NOEXCEPT
+      back() noexcept
       { return operator[](this->size() - 1); }
 
       /**
@@ -637,7 +637,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        *  last element of the %string.
        */
       const_reference
-      back() const _GLIBCXX_NOEXCEPT
+      back() const noexcept
       { return operator[](this->size() - 1); }
 #endif