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
This commit is contained in:
Stephan Bergmann 2015-04-28 15:05:27 +00:00 committed by Jonathan Wakely
parent 5756d0f931
commit 77e9546989
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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