diff options
Diffstat (limited to 'libstdc++-v3/include/debug/vector')
-rw-r--r-- | libstdc++-v3/include/debug/vector | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index 40bc6132da..bf0a88eb01 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 |