From 77e9546989e35ec709459af9ed3f87d38a0b471e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 28 Apr 2015 15:05:27 +0000 Subject: [PATCH] vector (_Safe_vector::operator=): Add missing returns. 2015-04-28 Stephan Bergmann * include/debug/vector (_Safe_vector::operator=): Add missing returns. From-SVN: r222532 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/debug/vector | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a38b6e33703..1b2567d5b9c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2015-04-28 Stephan Bergmann + + * include/debug/vector (_Safe_vector::operator=): Add missing returns. + 2015-04-28 Jonathan Wakely PR libstdc++/60333 diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index 40bc6132da7..bf0a88eb01c 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -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 -- 2.30.2