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