improve scope guard

This commit is contained in:
Tian Liao 2024-11-28 14:13:58 +08:00
commit 1776695ce0

View file

@ -63,6 +63,8 @@ namespace CalculatorUnitTests
: ExitFunctor(std::forward<F>(ef)) : ExitFunctor(std::forward<F>(ef))
{ {
} }
ScopeExit(const ScopeExit&) = delete;
ScopeExit(ScopeExit&&) = delete;
~ScopeExit() ~ScopeExit()
{ {
ExitFunctor(); ExitFunctor();