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
This commit is contained in:
parent
c4324b2b94
commit
fa97c2e8bc
@ -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=(nullptr_t)
|
||||
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=(nullptr_t)
|
||||
else if (__f_)
|
||||
__f_->destroy_deallocate();
|
||||
__f_ = 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
template<class _Rp, class _A0, class _A1, class _A2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user