Skip to content

Commit 231a1ea

Browse files
fix compilation errors
1 parent f5a0256 commit 231a1ea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include/beman/scope/scope.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

111111
template<scope_exit_function ScopeExitFunc, scope_invoke_checker InvokeChecker = ExecuteAlways>
112-
[[nodiscard]]
113-
class scope_guard
112+
class [[nodiscard]] scope_guard
114113
{
115114
public:
116115
explicit constexpr scope_guard(ScopeExitFunc&& exit_func)

tests/beman/scope/scope.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)