Skip to content

Commit 31b5071

Browse files
committed
Fix issue #12 take two, thanks @Pesa
1 parent 8c19708 commit 31b5071

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/nonstd/scope.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,9 +828,7 @@ class scope_success
828828
}
829829

830830
scope_constexpr_ext ~scope_success()
831-
#if scope_BETWEEN(scope_COMPILER_GNUC_VERSION, 1, 900) // GCC < 9, issue #12
832-
scope_noexcept_op( scope_noexcept_op(exit_function()) )
833-
#else
831+
#if !scope_BETWEEN(scope_COMPILER_GNUC_VERSION, 1, 900) // GCC >= 9, issue #12
834832
scope_noexcept_op( scope_noexcept_op(this->exit_function()) )
835833
#endif
836834
{

0 commit comments

Comments
 (0)