Add missing noexcept on std::_Sp_locker constructors

2016-12-06  Aditya Kumar  <hiraditya@msn.com>

	* 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
This commit is contained in:
Aditya Kumar 2016-12-06 10:43:49 +00:00 committed by Jonathan Wakely
parent 39a0325104
commit b6f684ae25
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-12-06 Aditya Kumar <hiraditya@msn.com>
* 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 <jwakely@redhat.com>
* include/bits/basic_string.h (basic_string::find, basic_string::rfind)

View File

@ -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())
{