Skip to content

Commit ef055d4

Browse files
committed
osd: Replace deprecated std::align_storage_t with alignas
C++23 has been enabled, causing deprecated warnings. Following the "possible implementation" in the C++ docs, I have replaced the last remaining aligned_storage_t. Signed-off-by: Alex Ainscow <[email protected]>
1 parent d621627 commit ef055d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/async/waiter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ class waiter<> final : public detail::base {
138138

139139
template<typename Ret>
140140
class waiter<Ret> final : public detail::base {
141-
std::aligned_storage_t<sizeof(Ret)> ret;
142-
141+
struct alignas(Ret) {
142+
std::byte data[sizeof(Ret)];
143+
} ret;
143144
public:
144145
Ret wait() {
145146
auto l = wait_base();

0 commit comments

Comments
 (0)