syntax fix

This commit is contained in:
apenn-msft 2025-02-03 18:24:21 -05:00 committed by GitHub
parent e00c1ccf55
commit 49371c5f29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ public:
explicit final_action(const F& ff) noexcept : f{ff} { }
explicit final_action(F&& ff) noexcept : f{std::move(ff)} { }
~final_action() noexcept(std::is_nothrow_invocable_v<F>){ }
~final_action() noexcept(std::is_nothrow_invocable_v<F>) { if (invoke) f(); }
final_action(final_action&& other) noexcept
: f(std::move(other.f)), invoke(std::exchange(other.invoke, false))