mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
Merge pull request #4086 from Romain-Geissler-1A/remove-aligned-storage
Remove std::aligned_storage as it is deprecated in C++23.
This commit is contained in:
commit
951ebbf82e
@ -21,6 +21,7 @@
|
||||
#include <algorithm>
|
||||
#include <typeinfo>
|
||||
#include <cstring>
|
||||
#include <cstddef>
|
||||
|
||||
|
||||
#define poco_any_assert(cond) do { if (!(cond)) std::abort(); } while (0)
|
||||
@ -137,7 +138,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
typedef typename std::aligned_storage<SizeV+1>::type AlignerType;
|
||||
typedef std::max_align_t AlignerType;
|
||||
static_assert(sizeof(AlignerType) >= SizeV + 1, "Aligner type is bigger than the actual storage, so SizeV should be made bigger otherwise you simply waste unused memory.");
|
||||
|
||||
void setLocal(bool local) const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user