Using C++23 builds with warning: std::aligned_storage
is deprecated
#3111
Labels
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
In C++23,
std::aligned_storage
was deprecated with P1413R3.Using it leads to a compiler warning with MSVC:
While
std::aligned_storage
isn't actually used for anything inopentelemetry-cpp
or its dependencies, it is referenced in that one file:api/include/opentelemetry/nostd/internal/absl/meta/type_traits.h
.That file uses it to define the no-std version of
aligned_storage_t
, which doesn't appear to be used anywhere.Proposal
Remove
aligned_storage
fromnostd
.This is exactly what Abseil did as well, in abseil/abseil-cpp@4213346.
The text was updated successfully, but these errors were encountered: