Skip to content

[C++] std::aligned_storage is deprecated since C++23 #41536

@vient

Description

@vient

Describe the bug, including details regarding any error messages, version, and platform.

include/arrow/util/aligned_storage.h:140:17: warning: 'aligned_storage<16, 8>' is deprecated [-Wdeprecated-declarations]
  140 |   typename std::aligned_storage<sizeof(T), alignof(T)>::type data_;

Since it is in headers, it triggers when compiling user code with -std=c++23. Not a bug yet but it may be removed completely from C++26.

Seen with clang++-18.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions