Commit 783aa06e by Jonathan Wakely Committed by Jonathan Wakely

Use noexcept instead of _GLIBCXX_NOEXCEPT

	* 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
parent 38cccb0b
2015-10-02 Jonathan Wakely <jwakely@redhat.com> 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. * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
* include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T] * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
......
...@@ -3441,7 +3441,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 ...@@ -3441,7 +3441,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
* element of the %string. * element of the %string.
*/ */
const_reference const_reference
front() const _GLIBCXX_NOEXCEPT front() const noexcept
{ {
__glibcxx_assert(!empty()); __glibcxx_assert(!empty());
return operator[](0); return operator[](0);
...@@ -3463,7 +3463,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 ...@@ -3463,7 +3463,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
* last element of the %string. * last element of the %string.
*/ */
const_reference const_reference
back() const _GLIBCXX_NOEXCEPT back() const noexcept
{ {
__glibcxx_assert(!empty()); __glibcxx_assert(!empty());
return operator[](this->size() - 1); return operator[](this->size() - 1);
......
...@@ -613,7 +613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -613,7 +613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* element of the %string. * element of the %string.
*/ */
reference reference
front() _GLIBCXX_NOEXCEPT front() noexcept
{ return operator[](0); } { return operator[](0); }
/** /**
...@@ -621,7 +621,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -621,7 +621,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* element of the %string. * element of the %string.
*/ */
const_reference const_reference
front() const _GLIBCXX_NOEXCEPT front() const noexcept
{ return operator[](0); } { return operator[](0); }
/** /**
...@@ -629,7 +629,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -629,7 +629,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* element of the %string. * element of the %string.
*/ */
reference reference
back() _GLIBCXX_NOEXCEPT back() noexcept
{ return operator[](this->size() - 1); } { return operator[](this->size() - 1); }
/** /**
...@@ -637,7 +637,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -637,7 +637,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* last element of the %string. * last element of the %string.
*/ */
const_reference const_reference
back() const _GLIBCXX_NOEXCEPT back() const noexcept
{ return operator[](this->size() - 1); } { return operator[](this->size() - 1); }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment