From a9f1d1651264880bf89eaba282ba7fc5bcd20f35 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Wed, 23 Oct 2024 10:05:27 +0200 Subject: [PATCH] Don't use aligned_storage_t in any_sender --- .../execution_base/include/pika/execution_base/any_sender.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pika/execution_base/include/pika/execution_base/any_sender.hpp b/libs/pika/execution_base/include/pika/execution_base/any_sender.hpp index 2a9bf2046..749a65f81 100644 --- a/libs/pika/execution_base/include/pika/execution_base/any_sender.hpp +++ b/libs/pika/execution_base/include/pika/execution_base/any_sender.hpp @@ -107,7 +107,7 @@ namespace pika::detail { #if defined(PIKA_DETAIL_ENABLE_ANY_SENDER_SBO) union { - std::aligned_storage_t embedded_storage; + alignas(alignment_size) unsigned char embedded_storage[embedded_storage_size]; #endif base_type* heap_storage = nullptr; #if defined(PIKA_DETAIL_ENABLE_ANY_SENDER_SBO)