Skip to content

Commit

Permalink
detail: fix build with gcc 8
Browse files Browse the repository at this point in the history
Update scope-lite to commit 31b507140f3f47834fd1d2177e168df518dc5757

Change-Id: I9925c9abe447b58e25d4bb83a4325acf50a07adb
  • Loading branch information
Pesa committed Feb 6, 2024
1 parent e371003 commit fdc5b51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ndn-cxx/detail/nonstd/scope-lite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,10 @@ class scope_success
other.release();
}

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

0 comments on commit fdc5b51

Please sign in to comment.