From 75eb6680d69f6d2bdbe3206a6572f8cf4b725311 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 2 Feb 2026 17:43:26 +0100 Subject: [PATCH] Make typed_storage constructor constexpr (#1291) * Remove AppVeyor build status badge Removed AppVeyor build status badge from README. * Update README.md * Update CONTRIBUTING.md Updated the instructions for contributing. * Fix for issue 1276 "Data corruption in the etl::bip_buffer_spsc_atomic" (#1277) * Reproduce data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Fix data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Make typed_storage constructor constexpr --------- Co-authored-by: John Wellbelove Co-authored-by: Sergei --- include/etl/alignment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/alignment.h b/include/etl/alignment.h index 73527765..41e8a20c 100644 --- a/include/etl/alignment.h +++ b/include/etl/alignment.h @@ -367,7 +367,7 @@ namespace etl //*************************************************************************** // Default constructor //*************************************************************************** - typed_storage() ETL_NOEXCEPT + ETL_CONSTEXPR typed_storage() ETL_NOEXCEPT : valid(false) { } @@ -567,7 +567,7 @@ namespace etl //******************************* union union_type { - union_type() ETL_NOEXCEPT + ETL_CONSTEXPR union_type() ETL_NOEXCEPT : dummy() { }