From b6f684ae25e66e3f9ad40c29af8b42f67421652e Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Tue, 6 Dec 2016 10:43:49 +0000 Subject: [PATCH] Add missing noexcept on std::_Sp_locker constructors 2016-12-06 Aditya Kumar * src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add noexcept on constructor. (_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same. From-SVN: r243291 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/src/c++11/shared_ptr.cc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b52efedb30..5dd75042480 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2016-12-06 Aditya Kumar + + * src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add + noexcept on constructor. + (_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same. + 2016-12-06 Jonathan Wakely * include/bits/basic_string.h (basic_string::find, basic_string::rfind) diff --git a/libstdc++-v3/src/c++11/shared_ptr.cc b/libstdc++-v3/src/c++11/shared_ptr.cc index 9028040f72d..b4addd04cc0 100644 --- a/libstdc++-v3/src/c++11/shared_ptr.cc +++ b/libstdc++-v3/src/c++11/shared_ptr.cc @@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { return _Hash_impl::hash(addr) & __gnu_internal::mask; } } - _Sp_locker::_Sp_locker(const void* p) + _Sp_locker::_Sp_locker(const void* p) noexcept { if (__gthread_active_p()) { @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _M_key1 = _M_key2 = __gnu_internal::invalid; } - _Sp_locker::_Sp_locker(const void* p1, const void* p2) + _Sp_locker::_Sp_locker(const void* p1, const void* p2) noexcept { if (__gthread_active_p()) { -- 2.30.2