detail: fix build with gcc 8
Update scope-lite to commit 31b507140f3f47834fd1d2177e168df518dc5757
Change-Id: I9925c9abe447b58e25d4bb83a4325acf50a07adb
diff --git a/ndn-cxx/detail/nonstd/scope-lite.hpp b/ndn-cxx/detail/nonstd/scope-lite.hpp
index 518ae8c..afd4f86 100644
--- a/ndn-cxx/detail/nonstd/scope-lite.hpp
+++ b/ndn-cxx/detail/nonstd/scope-lite.hpp
@@ -827,9 +827,10 @@
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();