From 629cbec22ac1b7ac6e483f88692e516b38d85142 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 9 Dec 2023 23:39:41 -0800 Subject: [PATCH] gha --- include/boost/leaf/error.hpp | 9 --------- test/context_deduction_test.cpp | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/boost/leaf/error.hpp b/include/boost/leaf/error.hpp index 90582b7d..3fce8a25 100644 --- a/include/boost/leaf/error.hpp +++ b/include/boost/leaf/error.hpp @@ -804,17 +804,11 @@ class context_activator context_activator( context_activator const & ) = delete; context_activator & operator=( context_activator const & ) = delete; -#if !defined(BOOST_LEAF_NO_EXCEPTIONS) && BOOST_LEAF_STD_UNCAUGHT_EXCEPTIONS - int const uncaught_exceptions_; -#endif Ctx * ctx_; public: explicit BOOST_LEAF_CONSTEXPR BOOST_LEAF_ALWAYS_INLINE context_activator(Ctx & ctx) noexcept: -#if !defined(BOOST_LEAF_NO_EXCEPTIONS) && BOOST_LEAF_STD_UNCAUGHT_EXCEPTIONS - uncaught_exceptions_(std::uncaught_exceptions()), -#endif ctx_(ctx.is_active() ? nullptr : &ctx) { if( ctx_ ) @@ -822,9 +816,6 @@ class context_activator } BOOST_LEAF_CONSTEXPR BOOST_LEAF_ALWAYS_INLINE context_activator( context_activator && x ) noexcept: -#if !defined(BOOST_LEAF_NO_EXCEPTIONS) && BOOST_LEAF_STD_UNCAUGHT_EXCEPTIONS - uncaught_exceptions_(x.uncaught_exceptions_), -#endif ctx_(x.ctx_) { x.ctx_ = nullptr; diff --git a/test/context_deduction_test.cpp b/test/context_deduction_test.cpp index d7cf26e2..33c7c7fc 100644 --- a/test/context_deduction_test.cpp +++ b/test/context_deduction_test.cpp @@ -138,7 +138,7 @@ void not_called_on_purpose() test< std::tuple,info<2>,info<3>> >( expd([]( info<1> const, info<2> ){ }, []( info<1> const *, info<3> ){ }) ); test< std::tuple,info<2>> >( expd([]( info<1>, info<2>, leaf::diagnostic_info const & ){ }, []( info<1>, info<2> ){ }) ); -#if BOOST_LEAF_CFG_DIAGNOSTICS +#if BOOST_LEAF_CFG_DIAGNOSTICS && BOOST_LEAF_CFG_CAPTURE test< std::tuple,info<2>,leaf::leaf_detail::dynamic_allocator> >( expd([]( info<1>, info<2>, leaf::verbose_diagnostic_info const & ){ }, []( info<1>, info<2> ){ }) ); #else test< std::tuple,info<2>> >( expd([]( info<1>, info<2> ){ }, []( info<1>, leaf::verbose_diagnostic_info const &, info<2> ){ }) );