diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-14 15:13:02 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-14 15:13:02 +0000 |
commit | 48039bb867f1433fc70294ce18eaa504153992b8 (patch) | |
tree | f4d8b5024d12778377ff669d0ff9849a23342d29 /libstdc++-v3 | |
parent | 96f7a32d978a86dd78b86eeb1fa0e193d0370383 (diff) | |
download | gcc-48039bb867f1433fc70294ce18eaa504153992b8.tar.gz |
* include/bits/allocator.h (operator==, operator!=): Add exception
specifications.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/allocator.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a2ea772f5d5..cd5e5e6aa0c 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 <marc.glisse@inria.fr> PR libstdc++/59434 diff --git a/libstdc++-v3/include/bits/allocator.h b/libstdc++-v3/include/bits/allocator.h index e293c545f42..05a06bab847 100644 --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -126,21 +126,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _T1, typename _T2> inline bool operator==(const allocator<_T1>&, const allocator<_T2>&) + _GLIBCXX_USE_NOEXCEPT { return true; } template<typename _Tp> inline bool operator==(const allocator<_Tp>&, const allocator<_Tp>&) + _GLIBCXX_USE_NOEXCEPT { return true; } template<typename _T1, typename _T2> inline bool operator!=(const allocator<_T1>&, const allocator<_T2>&) + _GLIBCXX_USE_NOEXCEPT { return false; } template<typename _Tp> inline bool operator!=(const allocator<_Tp>&, const allocator<_Tp>&) + _GLIBCXX_USE_NOEXCEPT { return false; } /// @} group allocator |