Commit 2081281b by Jonathan Wakely Committed by Jonathan Wakely

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

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

From-SVN: r200141
parent 0de86a92
2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com> 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 PR libstdc++/57263
* include/bits/forward_list.h (_Fwd_list_base): Convert to/from * include/bits/forward_list.h (_Fwd_list_base): Convert to/from
allocator's pointer type. allocator's pointer type.
......
...@@ -339,7 +339,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -339,7 +339,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
shared_lock& shared_lock&
operator=(shared_lock&& __sl) noexcept operator=(shared_lock&& __sl) noexcept
{ shared_lock(std::move(__sl)).swap(*this); } {
shared_lock(std::move(__sl)).swap(*this);
return *this;
}
void void
lock() lock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment