[libcxx] r238803 - Add missing return statements in C++03 std::function

Eric Fiselier eric at efcs.ca
Mon Jun 1 18:31:33 PDT 2015


Author: ericwf
Date: Mon Jun  1 20:31:33 2015
New Revision: 238803

URL: http://llvm.org/viewvc/llvm-project?rev=238803&view=rev
Log:
Add missing return statements in C++03 std::function

Modified:
    libcxx/trunk/include/__functional_03

Modified: libcxx/trunk/include/__functional_03
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__functional_03?rev=238803&r1=238802&r2=238803&view=diff
==============================================================================
--- libcxx/trunk/include/__functional_03 (original)
+++ libcxx/trunk/include/__functional_03 Mon Jun  1 20:31:33 2015
@@ -825,6 +825,7 @@ function<_Rp()>::operator=(nullptr_t)
     else if (__f_)
         __f_->destroy_deallocate();
     __f_ = 0;
+    return *this;
 }
 
 template<class _Rp>
@@ -1121,6 +1122,7 @@ function<_Rp(_A0)>::operator=(nullptr_t)
     else if (__f_)
         __f_->destroy_deallocate();
     __f_ = 0;
+    return *this;
 }
 
 template<class _Rp, class _A0>
@@ -1417,6 +1419,7 @@ function<_Rp(_A0, _A1)>::operator=(nullp
     else if (__f_)
         __f_->destroy_deallocate();
     __f_ = 0;
+    return *this;
 }
 
 template<class _Rp, class _A0, class _A1>
@@ -1713,6 +1716,7 @@ function<_Rp(_A0, _A1, _A2)>::operator=(
     else if (__f_)
         __f_->destroy_deallocate();
     __f_ = 0;
+    return *this;
 }
 
 template<class _Rp, class _A0, class _A1, class _A2>





More information about the cfe-commits mailing list