Skip to content

Commit ec2102d

Browse files
add paranthesis on require
1 parent 97d68d8 commit ec2102d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/beman/scope/scope.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class scope_guard {
9292
public:
9393
explicit constexpr scope_guard(ScopeExitFunc&& exit_func) //
9494
noexcept(std::is_nothrow_constructible_v<ScopeExitFunc>)
95-
requires !std::is_same_v<decltype(exit_func), scope_guard>
96-
try
95+
requires(!std::is_same_v<decltype(exit_func), scope_guard>)
96+
try
9797
: m_exit_func(std::forward<ScopeExitFunc>(exit_func)) //
9898
{
9999
} catch (...) {

0 commit comments

Comments
 (0)