From 88e2aaeec0e3f88acaf074ac862fd40c0f5922e3 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 12 Sep 2025 20:19:27 +0100 Subject: [PATCH] Removed ETL_NOEXCEPT from delegate operator(), call_if(), and call_or() Removed ETL_NOEXCEPT from closureoperator(), call_if(), and call_or() --- include/etl/private/delegate_cpp11.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/etl/private/delegate_cpp11.h b/include/etl/private/delegate_cpp11.h index a922a3e3..7c9382d2 100644 --- a/include/etl/private/delegate_cpp11.h +++ b/include/etl/private/delegate_cpp11.h @@ -372,7 +372,7 @@ namespace etl //************************************************************************* /// Execute the delegate. //************************************************************************* - ETL_CONSTEXPR14 TReturn operator()(TParams... args) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) + ETL_CONSTEXPR14 TReturn operator()(TParams... args) const { ETL_ASSERT(is_valid(), ETL_ERROR(delegate_uninitialised)); @@ -386,7 +386,7 @@ namespace etl template ETL_CONSTEXPR14 typename etl::enable_if_t::value, bool> - call_if(TParams... args) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) + call_if(TParams... args) const { if (is_valid()) { @@ -406,7 +406,7 @@ namespace etl template ETL_CONSTEXPR14 typename etl::enable_if_t::value, etl::optional> - call_if(TParams... args) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) + call_if(TParams... args) const { etl::optional result; @@ -423,7 +423,7 @@ namespace etl /// Run time alternative. //************************************************************************* template - ETL_CONSTEXPR14 TReturn call_or(TAlternative alternative, TParams... args) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) + ETL_CONSTEXPR14 TReturn call_or(TAlternative alternative, TParams... args) const { if (is_valid()) { @@ -440,7 +440,7 @@ namespace etl /// Compile time alternative. //************************************************************************* template - ETL_CONSTEXPR14 TReturn call_or(TParams... args) const ETL_NOEXCEPT_EXPR(ETL_NOT_USING_EXCEPTIONS) + ETL_CONSTEXPR14 TReturn call_or(TParams... args) const { if (is_valid()) {