From fa97c2e8bc1b8a69759e57d8b794bc63ae22868a Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 2 Jun 2015 01:31:33 +0000 Subject: Add missing return statements in C++03 std::function git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@238803 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__functional_03 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/__functional_03') diff --git a/include/__functional_03 b/include/__functional_03 index 785a2758c..f048ea324 100644 --- a/include/__functional_03 +++ b/include/__functional_03 @@ -825,6 +825,7 @@ function<_Rp()>::operator=(nullptr_t) else if (__f_) __f_->destroy_deallocate(); __f_ = 0; + return *this; } template @@ -1121,6 +1122,7 @@ function<_Rp(_A0)>::operator=(nullptr_t) else if (__f_) __f_->destroy_deallocate(); __f_ = 0; + return *this; } template @@ -1417,6 +1419,7 @@ function<_Rp(_A0, _A1)>::operator=(nullptr_t) else if (__f_) __f_->destroy_deallocate(); __f_ = 0; + return *this; } template @@ -1713,6 +1716,7 @@ function<_Rp(_A0, _A1, _A2)>::operator=(nullptr_t) else if (__f_) __f_->destroy_deallocate(); __f_ = 0; + return *this; } template -- cgit v1.2.3