diff --git a/cruft/util/parallel/stack.hpp b/cruft/util/parallel/stack.hpp index 591491f9..03cbb188 100644 --- a/cruft/util/parallel/stack.hpp +++ b/cruft/util/parallel/stack.hpp @@ -154,7 +154,10 @@ namespace cruft::parallel { private: using index_type = std::size_t; - using raw_type = std::aligned_storage_t; + + struct raw_type { + alignas(ValueT) std::byte data[sizeof(ValueT)]; + }; mutable cruft::thread::spinlock m_lock; std::atomic m_cursor;