From: Jonathan Wakely Date: Mon, 14 Apr 2014 15:13:02 +0000 (+0100) Subject: allocator.h (operator==, operator!=): Add exception specifications. X-Git-Tag: releases/gcc-5.1.0~8136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e364673d87f7409f9014d25989293f6a80c9508c;p=thirdparty%2Fgcc.git allocator.h (operator==, operator!=): Add exception specifications. * include/bits/allocator.h (operator==, operator!=): Add exception specifications. From-SVN: r209379 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a2ea772f5d59..cd5e5e6aa0c5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -6,6 +6,9 @@ * include/bits/vector.tcc (vector::_M_insert_aux, vector::_M_explace_back_aux): Likewise for assignment. + * include/bits/allocator.h (operator==, operator!=): Add exception + specifications. + 2014-04-11 Marc Glisse PR libstdc++/59434 diff --git a/libstdc++-v3/include/bits/allocator.h b/libstdc++-v3/include/bits/allocator.h index e293c545f424..05a06bab847c 100644 --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -126,21 +126,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template inline bool operator==(const allocator<_T1>&, const allocator<_T2>&) + _GLIBCXX_USE_NOEXCEPT { return true; } template inline bool operator==(const allocator<_Tp>&, const allocator<_Tp>&) + _GLIBCXX_USE_NOEXCEPT { return true; } template inline bool operator!=(const allocator<_T1>&, const allocator<_T2>&) + _GLIBCXX_USE_NOEXCEPT { return false; } template inline bool operator!=(const allocator<_Tp>&, const allocator<_Tp>&) + _GLIBCXX_USE_NOEXCEPT { return false; } /// @} group allocator