diff options
Diffstat (limited to 'src/common/scope_exit.h')
| -rw-r--r-- | src/common/scope_exit.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/scope_exit.h b/src/common/scope_exit.h index 73b2a262e..072ab285d 100644 --- a/src/common/scope_exit.h +++ b/src/common/scope_exit.h | |||
| @@ -10,8 +10,7 @@ | |||
| 10 | namespace detail { | 10 | namespace detail { |
| 11 | template <typename Func> | 11 | template <typename Func> |
| 12 | struct ScopeExitHelper { | 12 | struct ScopeExitHelper { |
| 13 | explicit ScopeExitHelper(Func&& func) : func(std::move(func)) { | 13 | explicit ScopeExitHelper(Func&& func) : func(std::move(func)) {} |
| 14 | } | ||
| 15 | ~ScopeExitHelper() { | 14 | ~ScopeExitHelper() { |
| 16 | func(); | 15 | func(); |
| 17 | } | 16 | } |