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]
* element of the %string.
*/
const_reference
- front() const _GLIBCXX_NOEXCEPT
+ front() const noexcept
{
__glibcxx_assert(!empty());
return operator[](0);
* last element of the %string.
*/
const_reference
- back() const _GLIBCXX_NOEXCEPT
+ back() const noexcept
{
__glibcxx_assert(!empty());
return operator[](this->size() - 1);
* element of the %string.
*/
reference
- front() _GLIBCXX_NOEXCEPT
+ front() noexcept
{ return operator[](0); }
/**
* element of the %string.
*/
const_reference
- front() const _GLIBCXX_NOEXCEPT
+ front() const noexcept
{ return operator[](0); }
/**
* element of the %string.
*/
reference
- back() _GLIBCXX_NOEXCEPT
+ back() noexcept
{ return operator[](this->size() - 1); }
/**
* last element of the %string.
*/
const_reference
- back() const _GLIBCXX_NOEXCEPT
+ back() const noexcept
{ return operator[](this->size() - 1); }
#endif