mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[wpiutil] Fix deprecation warning in LLVM for C++23 (#5642)
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "wpi/STLForwardCompat.h"
|
||||
#include "wpi/MemAlloc.h"
|
||||
#include "wpi/type_traits.h"
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
@@ -167,8 +168,7 @@ protected:
|
||||
// provide four pointers worth of storage here.
|
||||
// This is mutable as an inlined `const unique_function<void() const>` may
|
||||
// still modify its own mutable members.
|
||||
mutable std::aligned_storage_t<InlineStorageSize, alignof(void *)>
|
||||
InlineStorage;
|
||||
alignas(void*) mutable std::byte InlineStorage[InlineStorageSize];
|
||||
} StorageUnion;
|
||||
|
||||
// A compressed pointer to either our dispatching callback or our table of
|
||||
|
||||
Reference in New Issue
Block a user