Skip to content

Commit 9885a6e

Browse files
committed
add todo destructors
1 parent 2c64e3e commit 9885a6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/beman/scope/scope.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ namespace beman::scope {
99
struct scope_exit {
1010
template <typename F>
1111
scope_exit(F) {}
12+
~scope_exit() {
13+
// TODO: Cleanup
14+
}
1215
};
1316

1417
// TODO: Implement
1518
struct scope_fail {
1619
template <typename F>
1720
scope_fail(F) {}
21+
~scope_fail() {
22+
// TODO: Cleanup
23+
}
1824
};
1925

2026
// TODO: Implement
2127
struct scope_success {
2228
template <typename F>
2329
scope_success(F) {}
30+
~scope_success() {
31+
// TODO: Cleanup
32+
}
33+
};
2434
};
2535

2636
} // namespace beman::scope

0 commit comments

Comments
 (0)