Skip to content

Replace std::aligned_storage<T, ...> with alignas(T) unsigned char[]#340

Open
eoan-ermine wants to merge 1 commit into
boostorg:developfrom
eoan-ermine:issue/338
Open

Replace std::aligned_storage<T, ...> with alignas(T) unsigned char[]#340
eoan-ermine wants to merge 1 commit into
boostorg:developfrom
eoan-ermine:issue/338

Conversation

@eoan-ermine
Copy link
Copy Markdown
Contributor

Closes #338

Copilot AI review requested due to automatic review settings May 30, 2026 18:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Replaces deprecated std::aligned_storage (deprecated in C++23) with raw byte arrays plus alignas specifiers in channel storage types.

Changes:

  • Replace std::aligned_storage typedef with unsigned char[sizeof(T)] array typedef.
  • Add alignas(T) to storage members to preserve alignment requirements.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
performance/thread/buffered_channel.hpp Updates slot storage to avoid deprecated std::aligned_storage.
include/boost/fiber/unbuffered_channel.hpp Updates iterator storage to avoid deprecated std::aligned_storage.
include/boost/fiber/buffered_channel.hpp Updates iterator storage to avoid deprecated std::aligned_storage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread include/boost/fiber/buffered_channel.hpp Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated std::aligned_storage usage in Boost.Fiber channels

2 participants