shared_mutex (shared_lock::operator=): Add missing return statement.

* include/std/shared_mutex (shared_lock::operator=): Add missing
	return statement.

From-SVN: r200141
This commit is contained in:
Jonathan Wakely 2013-06-16 21:56:43 +00:00 committed by Jonathan Wakely
parent 0de86a9228
commit 2081281b10
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/shared_mutex (shared_lock::operator=): Add missing
return statement.
2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/57263

View File

@ -339,7 +339,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
shared_lock&
operator=(shared_lock&& __sl) noexcept
{ shared_lock(std::move(__sl)).swap(*this); }
{
shared_lock(std::move(__sl)).swap(*this);
return *this;
}
void
lock()