Commit 77e95469 by Stephan Bergmann Committed by Jonathan Wakely

vector (_Safe_vector::operator=): Add missing returns.

2015-04-28  Stephan Bergmann  <sbergman@redhat.com>

	* include/debug/vector (_Safe_vector::operator=): Add missing returns.

From-SVN: r222532
parent 5756d0f9
2015-04-28 Stephan Bergmann <sbergman@redhat.com>
* include/debug/vector (_Safe_vector::operator=): Add missing returns.
2015-04-28 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/60333
......
......@@ -69,13 +69,17 @@ namespace __gnu_debug
_Safe_vector&
operator=(const _Safe_vector&) noexcept
{ _M_update_guaranteed_capacity(); }
{
_M_update_guaranteed_capacity();
return *this;
}
_Safe_vector&
operator=(_Safe_vector&& __x) noexcept
{
_M_update_guaranteed_capacity();
__x._M_guaranteed_capacity = 0;
return *this;
}
#endif
......
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