mirror of git://gcc.gnu.org/git/gcc.git
array (array<>::swap): Fix noexcept qualificaton for zero-size array.
2016-06-23 François Dumont <fdumont@gcc.gnu.org> * include/debug/array (array<>::swap): Fix noexcept qualificaton for zero-size array. From-SVN: r237747
This commit is contained in:
parent
7bb5d5f42d
commit
e615c24c30
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-06-23 François Dumont <fdumont@gcc.gnu.org>
|
||||||
|
|
||||||
|
* include/debug/array (array<>::swap): Fix noexcept qualificaton for
|
||||||
|
zero-size array.
|
||||||
|
|
||||||
2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
|
2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
|
||||||
|
|
||||||
* configure.host: Remove mep-* support.
|
* configure.host: Remove mep-* support.
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ namespace __debug
|
||||||
|
|
||||||
void
|
void
|
||||||
swap(array& __other)
|
swap(array& __other)
|
||||||
noexcept(__is_nothrow_swappable<_Tp>::value)
|
noexcept(_AT_Type::_Is_nothrow_swappable::value)
|
||||||
{ std::swap_ranges(begin(), end(), __other.begin()); }
|
{ std::swap_ranges(begin(), end(), __other.begin()); }
|
||||||
|
|
||||||
// Iterators.
|
// Iterators.
|
||||||
|
|
@ -168,9 +168,8 @@ namespace __debug
|
||||||
at(size_type __n)
|
at(size_type __n)
|
||||||
{
|
{
|
||||||
if (__n >= _Nm)
|
if (__n >= _Nm)
|
||||||
std::__throw_out_of_range_fmt(__N("array::at: __n "
|
std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) "
|
||||||
"(which is %zu) >= _Nm "
|
">= _Nm (which is %zu)"),
|
||||||
"(which is %zu)"),
|
|
||||||
__n, _Nm);
|
__n, _Nm);
|
||||||
return _AT_Type::_S_ref(_M_elems, __n);
|
return _AT_Type::_S_ref(_M_elems, __n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue