Skip to content

Commit

Permalink
Fix issue #12 take two, thanks @Pesa
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Feb 6, 2024
1 parent 8c19708 commit 31b5071
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/nonstd/scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,7 @@ class scope_success
}

scope_constexpr_ext ~scope_success()
#if scope_BETWEEN(scope_COMPILER_GNUC_VERSION, 1, 900) // GCC < 9, issue #12
scope_noexcept_op( scope_noexcept_op(exit_function()) )
#else
#if !scope_BETWEEN(scope_COMPILER_GNUC_VERSION, 1, 900) // GCC >= 9, issue #12
scope_noexcept_op( scope_noexcept_op(this->exit_function()) )
#endif
{
Expand Down

0 comments on commit 31b5071

Please sign in to comment.