mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Changed argument name in finally
This commit is contained in:
parent
f421933264
commit
ed92be2fa5
@ -61,10 +61,10 @@ private:
|
||||
// This is convenience function to generate a final_action
|
||||
//
|
||||
template <class F>
|
||||
final_action<F> finally(const F& act) noexcept { return final_action<F>(act); }
|
||||
final_action<F> finally(const F& f) noexcept { return final_action<F>(f); }
|
||||
|
||||
template <class F>
|
||||
final_action<F> finally(F&& act) noexcept { return final_action<F>(std::forward<F>(act)); }
|
||||
final_action<F> finally(F&& f) noexcept { return final_action<F>(std::forward<F>(f)); }
|
||||
|
||||
} // close namespace gsl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user