File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ concept scope_invoke_checker = HasStaticCanInvoke<T> || HasCanInvoke<T> || invoc
103103
104104// ==================================================================================================
105105
106- struct ExecuteAlways ;
107- struct NeverExecute ;
106+ class ExecuteAlways ;
107+ class NeverExecute ;
108108
109109// ==================================================================================================
110110
111111template <scope_exit_function ScopeExitFunc, scope_invoke_checker InvokeChecker = ExecuteAlways>
112- [[nodiscard]]
113- class scope_guard
112+ class [[nodiscard]] scope_guard
114113{
115114public:
116115 explicit constexpr scope_guard (ScopeExitFunc&& exit_func)
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ TEST_CASE("scope_guard")
105105
106106 auto guard = beman::scope::scope_guard { exit_func_onj };
107107
108- auto guard2 (std::move (guard));
108+ // auto guard2(std::move(guard));
109109
110110 REQUIRE (exit_func_onj.invoked_count == 1 );
111111 }
You can’t perform that action at this time.
0 commit comments