mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Restored copyability to final_action
This commit is contained in:
parent
4cd8873d3e
commit
39e956b9b1
@ -54,10 +54,6 @@ class final_action
|
|||||||
public:
|
public:
|
||||||
explicit final_action(F f) : f_(std::move(f)) { }
|
explicit final_action(F f) : f_(std::move(f)) { }
|
||||||
~final_action() noexcept { f_(); }
|
~final_action() noexcept { f_(); }
|
||||||
|
|
||||||
final_action(const final_action&) = delete;
|
|
||||||
final_action& operator=(const final_action&) = delete;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
F f_;
|
F f_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user