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:
parent
5756d0f931
commit
77e9546989
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue