From aea6e7da8bd2a5cf01e5719e083b7ebb1a3bc894 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 26 Aug 2025 17:41:51 +0100 Subject: [PATCH] Added ETL_NOEXCEPT and ETL_NOEXCEPT_IF_NO_THROW --- include/etl/alignment.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/etl/alignment.h b/include/etl/alignment.h index 686a2f46..ff469ccd 100644 --- a/include/etl/alignment.h +++ b/include/etl/alignment.h @@ -371,7 +371,7 @@ namespace etl //*************************************************************************** // Default constructor //*************************************************************************** - typed_storage() + typed_storage() ETL_NOEXCEPT : valid(false) { } @@ -381,7 +381,7 @@ namespace etl /// Constructs the instance of T forwarding the given \p args to its constructor. //*************************************************************************** template - typed_storage(TArgs&&... args) + typed_storage(TArgs&&... args) ETL_NOEXCEPT_IF_NO_THROW { create(etl::forward(args)...); } @@ -423,7 +423,7 @@ namespace etl /// Default destructor which will NOT call the destructor of the object which /// was created by calling create(). //*************************************************************************** - ~typed_storage() + ~typed_storage() ETL_NOEXCEPT { // Intentionally empty. } @@ -443,7 +443,7 @@ namespace etl /// \returns the instance of T which has been constructed in the internal byte array. //*************************************************************************** template - reference create(TArgs&&... args) + reference create(TArgs&&... args) ETL_NOEXCEPT_IF_NO_THROW { if (has_value()) { @@ -542,7 +542,7 @@ namespace etl //*************************************************************************** /// Calls the destructor of the stored object, if created. //*************************************************************************** - void destroy() + void destroy() ETL_NOEXCEPT { if (has_value()) { @@ -597,12 +597,12 @@ namespace etl //******************************* union union_type { - union_type() + union_type() ETL_NOEXCEPT : dummy() { } - ~union_type() + ~union_type() ETL_NOEXCEPT { }