mirror of
https://github.com/microsoft/GSL.git
synced 2026-04-29 02:03:23 +02:00
Fix moving a final_act twice
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ class final_act
|
||||
public:
|
||||
explicit final_act(F f) noexcept : f_(std::move(f)), invoke_(true) {}
|
||||
|
||||
final_act(final_act&& other) noexcept : f_(std::move(other.f_)), invoke_(true) { other.invoke_ = false; }
|
||||
final_act(final_act&& other) noexcept : f_(std::move(other.f_)), invoke_(other.invoke_) { other.invoke_ = false; }
|
||||
final_act(const final_act&) = delete;
|
||||
final_act& operator=(const final_act&) = delete;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user